Versions in this module Expand all Collapse all v1 v1.0.0 Dec 6, 2022 Changes in this version + type Client struct + func (c *Client) Close() error + func (c *Client) Get(ctx context.Context, interval time.Duration, attempts int) (netip.AddrPort, error) + func (c *Client) Run(ctx context.Context, interval time.Duration) (<-chan Result, error) + type Config struct + BindAddress string + PSK []byte + ServerAddrPort netip.AddrPort + func (c Config) Client() (*Client, error) + type Error struct + Err error + Message string + PacketLength int + PeerAddrPort netip.AddrPort + func (e Error) Error() string + func (e Error) Unwrap() error + type Result struct + ClientAddrPort netip.AddrPort + Err Error + func ErrResult(err Error) Result + func OkResult(clientAddrPort netip.AddrPort) Result + func (r Result) IsOk() bool