Versions in this module Expand all Collapse all v0 v0.0.1 Feb 5, 2024 Changes in this version + var Debug = false + func ListenPacket(derpURL string, key Key) (net.PacketConn, error) + type Addr []byte + func (Addr) Network() string + func (a Addr) EncodedString() string + func (a Addr) String() string + type Key []byte + func GenerateKey() (Key, error) + func (k Key) Bytes() []byte + func (k Key) IsValid() bool + func (k Key) PublicKey() (PublicKey, error) + type ListenConfig struct + func (lc *ListenConfig) ListenPacket(ctx context.Context, derpURL string, key Key) (net.PacketConn, error) + type PacketConn struct + func (*PacketConn) SetDeadline(t time.Time) error + func (*PacketConn) SetWriteDeadline(t time.Time) error + func (c *PacketConn) Close() error + func (c *PacketConn) LocalAddr() net.Addr + func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) + func (c *PacketConn) SetReadDeadline(t time.Time) error + func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error) + type PublicKey []byte + func (p PublicKey) Bytes() []byte