Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + const AuthTypeNoAuth + const AuthTypePassword + var ErrUnsupportedAuthMethod = errors.New("Unsupported auth method.") + var ErrUnsupportedSocksCommand = errors.New("Unsupported socks command.") + type Account struct + Password string + Username string + func (this *Account) Equals(another protocol.Account) bool + type ClientConfig struct + Servers []*protocol.ServerSpec + type Config struct + Accounts map[string]string + Address v2net.Address + AuthType byte + Timeout int + UDPEnabled bool + func (this *Config) HasAccount(username, password string) bool + type Server struct + func NewServer(config *Config, space app.Space, meta *proxy.InboundHandlerMeta) *Server + func (this *Server) Close() + func (this *Server) Port() v2net.Port + func (this *Server) Start() error + type ServerFactory struct + func (this *ServerFactory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error) + func (this *ServerFactory) StreamCapability() internet.StreamConnectionType Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018