Versions in this module Expand all Collapse all v1 v1.2.0 Jul 13, 2025 Changes in this version + var ErrInvalidVersion = fmt.Errorf("invalid version") + type Auth byte + const AuthNone + const AuthNotAcceptable + func (a Auth) MarshalText() ([]byte, error) + func (a Auth) String() string + type Command byte + const CommandAssociate + const CommandBind + const CommandConnect + func (c Command) MarshalText() ([]byte, error) + func (c Command) String() string + type Greeting struct + Auth []Auth + Version Version + func ReadGreeting(r *bufio.Reader) (*Greeting, error) + func (g *Greeting) Write(w io.Writer) error + type GreetingReply struct + Auth Auth + Version Version + func ReadGreetingReply(r *bufio.Reader) (*GreetingReply, error) + func (r *GreetingReply) Write(w io.Writer) error + type Reply struct + BindAddr addr.Addr + Status Status + Version Version + func ReadReply(r *bufio.Reader) (*Reply, error) + func (r *Reply) Write(w io.Writer) error + type Request struct + Command Command + DstAddr addr.Addr + Username string + Version Version + func ReadRequest(r *bufio.Reader) (*Request, error) + func (r *Request) Write(w io.Writer) error + type Status byte + const StatusAddrTypeNotSupported + const StatusCommandNotSupported + const StatusConnectionNotAllowed + const StatusConnectionRefused + const StatusGeneralFailure + const StatusGranted + const StatusHostUnreachable + const StatusIdentAuthFailure + const StatusNetworkUnreachable + const StatusNoIdentService + const StatusTTLExpired + func (s Status) MarshalText() ([]byte, error) + func (s Status) String() string + type Version byte + const V4 + const V5 + func (v Version) MarshalText() ([]byte, error) + func (v Version) String() string