Versions in this module Expand all Collapse all v0 v0.2.6 Nov 10, 2023 Changes in this version + const MethodNone + var ErrBadKey = E.New("bad key") + var ErrMissingPassword = E.New("missing password") + var ErrNoUsers = E.New("no users") + func Key(password []byte, keySize int) []byte + type Handler interface + type Method interface + DialConn func(conn net.Conn, destination M.Socksaddr) (net.Conn, error) + DialEarlyConn func(conn net.Conn, destination M.Socksaddr) net.Conn + DialPacketConn func(conn net.Conn) N.NetPacketConn + Name func() string + func NewNone() Method + type MultiService interface + Name func() string + UpdateUsers func(userList []U, keyList [][]byte) error + UpdateUsersWithPasswords func(userList []U, passwordList []string) error + type NoneMethod struct + func (m *NoneMethod) DialConn(conn net.Conn, destination M.Socksaddr) (net.Conn, error) + func (m *NoneMethod) DialEarlyConn(conn net.Conn, destination M.Socksaddr) net.Conn + func (m *NoneMethod) DialPacketConn(conn net.Conn) N.NetPacketConn + func (m *NoneMethod) Name() string + type NoneService struct + func (s *NoneService) Name() string + func (s *NoneService) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error + func (s *NoneService) NewError(ctx context.Context, err error) + func (s *NoneService) NewPacket(ctx context.Context, conn N.PacketConn, buffer *buf.Buffer, ...) error + func (s *NoneService) Password() string + func (s *NoneService) WriteIsThreadUnsafe() + type ServerConnError struct + Cause error + Source M.Socksaddr + func (e *ServerConnError) Close() error + func (e *ServerConnError) Error() string + func (e *ServerConnError) Unwrap() error + type ServerPacketError struct + Cause error + Source M.Socksaddr + func (e *ServerPacketError) Error() string + func (e *ServerPacketError) Unwrap() error + type Service interface + Name func() string + Password func() string + func NewNoneService(udpTimeout int64, handler Handler) Service