Versions in this module Expand all Collapse all v1 v1.1.0 Jun 6, 2025 Changes in this version + const VersionCode + var ErrInvalidVersion = errors.New("invalid version") + type Command byte + const CommandBind + const CommandConnect + func (c Command) MarshalText() ([]byte, error) + func (c Command) String() string + type Reply struct + BindAddr addr.Addr + Status Status + 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 + func ReadRequest(r *bufio.Reader) (*Request, error) + func (r *Request) Write(w io.Writer) error + type Status byte + const StatusAuthFailed + const StatusGranted + const StatusNoAuthService + const StatusRejectedOrFailed + func (s Status) MarshalText() ([]byte, error) + func (s Status) String() string v1.0.0 May 31, 2025