Versions in this module Expand all Collapse all v1 v1.0.0 Nov 4, 2022 Changes in this version + type Base struct + Key []byte + Overhead int + Param string + type Conn struct + func (c *Conn) Read(b []byte) (int, error) + func (c *Conn) Write(b []byte) (int, error) + type PacketConn struct + func (c *PacketConn) ReadFrom(b []byte) (int, net.Addr, error) + func (c *PacketConn) WriteTo(b []byte, addr net.Addr) (int, error) + type Protocol interface + Decode func(dst, src *bytes.Buffer) error + DecodePacket func([]byte) ([]byte, error) + Encode func(buf *bytes.Buffer, b []byte) error + EncodePacket func(buf *bytes.Buffer, b []byte) error + PacketConn func(net.PacketConn) net.PacketConn + StreamConn func(net.Conn, []byte) net.Conn + func PickProtocol(name string, b *Base) (Protocol, error)