Versions in this module Expand all Collapse all v0 v0.0.1 Mar 12, 2024 Changes in this version + var ErrConflict = errors.New("client already exists") + var ErrNotFound = errors.New("no such client") + type Handler interface + ServeUDP func(netip.AddrPort, io.Reader, io.Writer) + type HandlerFunc func(netip.AddrPort, io.Reader, io.Writer) + func (f HandlerFunc) ServeUDP(addr netip.AddrPort, r io.Reader, w io.Writer) + type SGS struct + func NewServer(ctx context.Context, addr string, senderTimeout time.Duration, handler Handler, ...) SGS + func (s *SGS) ListenAndServe() (err error) + type Sender interface + Send func() ([]netip.AddrPort, io.Reader) + type SenderFunc func() ([]netip.AddrPort, io.Reader) + func (f SenderFunc) Send() ([]netip.AddrPort, io.Reader)