Versions in this module Expand all Collapse all v1 v1.8.7 Dec 27, 2023 v1.0.0 Dec 27, 2023 Changes in this version + var File_proxy_shadowsocks_2022_config_proto protoreflect.FileDescriptor + type ClientConfig struct + Address *net.IPOrDomain + Key string + Method string + Port uint32 + UdpOverTcp bool + UdpOverTcpVersion uint32 + func (*ClientConfig) Descriptor() ([]byte, []int) + func (*ClientConfig) ProtoMessage() + func (x *ClientConfig) GetAddress() *net.IPOrDomain + func (x *ClientConfig) GetKey() string + func (x *ClientConfig) GetMethod() string + func (x *ClientConfig) GetPort() uint32 + func (x *ClientConfig) GetUdpOverTcp() bool + func (x *ClientConfig) GetUdpOverTcpVersion() uint32 + func (x *ClientConfig) ProtoReflect() protoreflect.Message + func (x *ClientConfig) Reset() + func (x *ClientConfig) String() string + type Inbound struct + func NewServer(ctx context.Context, config *ServerConfig) (*Inbound, error) + func (i *Inbound) Network() []net.Network + func (i *Inbound) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error + func (i *Inbound) NewError(ctx context.Context, err error) + func (i *Inbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata M.Metadata) error + func (i *Inbound) Process(ctx context.Context, network net.Network, connection stat.Connection, ...) error + type MemoryAccount struct + Email string + Key string + Level int32 + func (a *MemoryAccount) Equals(another protocol.Account) bool + type MultiUserInbound struct + func NewMultiServer(ctx context.Context, config *MultiUserServerConfig) (*MultiUserInbound, error) + func (i *MultiUserInbound) AddUser(ctx context.Context, u *protocol.MemoryUser) error + func (i *MultiUserInbound) Network() []net.Network + func (i *MultiUserInbound) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error + func (i *MultiUserInbound) NewError(ctx context.Context, err error) + func (i *MultiUserInbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata M.Metadata) error + func (i *MultiUserInbound) Process(ctx context.Context, network net.Network, connection stat.Connection, ...) error + func (i *MultiUserInbound) RemoveUser(ctx context.Context, email string) error + type MultiUserServerConfig struct + Key string + Method string + Network []net.Network + Users []*User + func (*MultiUserServerConfig) Descriptor() ([]byte, []int) + func (*MultiUserServerConfig) ProtoMessage() + func (x *MultiUserServerConfig) GetKey() string + func (x *MultiUserServerConfig) GetMethod() string + func (x *MultiUserServerConfig) GetNetwork() []net.Network + func (x *MultiUserServerConfig) GetUsers() []*User + func (x *MultiUserServerConfig) ProtoReflect() protoreflect.Message + func (x *MultiUserServerConfig) Reset() + func (x *MultiUserServerConfig) String() string + type Outbound struct + func NewClient(ctx context.Context, config *ClientConfig) (*Outbound, error) + func (o *Outbound) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error + type RelayDestination struct + Address *net.IPOrDomain + Email string + Key string + Level int32 + Port uint32 + func (*RelayDestination) Descriptor() ([]byte, []int) + func (*RelayDestination) ProtoMessage() + func (x *RelayDestination) GetAddress() *net.IPOrDomain + func (x *RelayDestination) GetEmail() string + func (x *RelayDestination) GetKey() string + func (x *RelayDestination) GetLevel() int32 + func (x *RelayDestination) GetPort() uint32 + func (x *RelayDestination) ProtoReflect() protoreflect.Message + func (x *RelayDestination) Reset() + func (x *RelayDestination) String() string + type RelayInbound struct + func NewRelayServer(ctx context.Context, config *RelayServerConfig) (*RelayInbound, error) + func (i *RelayInbound) Network() []net.Network + func (i *RelayInbound) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error + func (i *RelayInbound) NewError(ctx context.Context, err error) + func (i *RelayInbound) NewPacketConnection(ctx context.Context, conn N.PacketConn, metadata M.Metadata) error + func (i *RelayInbound) Process(ctx context.Context, network net.Network, connection stat.Connection, ...) error + type RelayServerConfig struct + Destinations []*RelayDestination + Key string + Method string + Network []net.Network + func (*RelayServerConfig) Descriptor() ([]byte, []int) + func (*RelayServerConfig) ProtoMessage() + func (x *RelayServerConfig) GetDestinations() []*RelayDestination + func (x *RelayServerConfig) GetKey() string + func (x *RelayServerConfig) GetMethod() string + func (x *RelayServerConfig) GetNetwork() []net.Network + func (x *RelayServerConfig) ProtoReflect() protoreflect.Message + func (x *RelayServerConfig) Reset() + func (x *RelayServerConfig) String() string + type ServerConfig struct + Email string + Key string + Level int32 + Method string + Network []net.Network + func (*ServerConfig) Descriptor() ([]byte, []int) + func (*ServerConfig) ProtoMessage() + func (x *ServerConfig) GetEmail() string + func (x *ServerConfig) GetKey() string + func (x *ServerConfig) GetLevel() int32 + func (x *ServerConfig) GetMethod() string + func (x *ServerConfig) GetNetwork() []net.Network + func (x *ServerConfig) ProtoReflect() protoreflect.Message + func (x *ServerConfig) Reset() + func (x *ServerConfig) String() string + type User struct + Email string + Key string + Level int32 + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (u *User) AsAccount() (protocol.Account, error) + func (x *User) GetEmail() string + func (x *User) GetKey() string + func (x *User) GetLevel() int32 + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string