Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2023 Changes in this version + const AuthenticateLen + const CommandAuthenticate + const CommandConnect + const CommandDissociate + const CommandHeartbeat + const CommandPacket + const Version + type Client struct + func NewClient(options ClientOptions) (*Client, error) + func (c *Client) CloseWithError(err error) error + func (c *Client) DialConn(ctx context.Context, destination M.Socksaddr) (net.Conn, error) + func (c *Client) ListenPacket(ctx context.Context) (net.PacketConn, error) + type ClientOptions struct + CongestionControl string + Context context.Context + Dialer N.Dialer + Heartbeat time.Duration + Password string + ServerAddress M.Socksaddr + TLSConfig *tls.Config + UDPStream bool + UUID uuid.UUID + ZeroRTTHandshake bool + type Server struct + func NewServer(options ServerOptions) (*Server, error) + func (s *Server) Close() error + func (s *Server) Start(conn net.PacketConn) error + type ServerHandler interface + type ServerOptions struct + AuthTimeout time.Duration + CongestionControl string + Context context.Context + Handler ServerHandler + Heartbeat time.Duration + Logger logger.Logger + TLSConfig *tls.Config + Users []User + ZeroRTTHandshake bool + type User struct + Name string + Password string + UUID uuid.UUID