Documentation ¶
Overview ¶
Package shadowsocks is a generated protocol buffer package.
It is generated from these files:
v2ray.com/core/proxy/shadowsocks/config.proto
It has these top-level messages:
Account Config
R.I.P Shadowsocks
Index ¶
- Constants
- Variables
- func ChunkKeyGenerator(iv []byte) func() []byte
- func HeaderKeyGenerator(key []byte, iv []byte) func() []byte
- func PasswordToCipherKey(password string, keySize int) []byte
- type Account
- func (this *Account) AsAccount() (protocol.Account, error)
- func (*Account) Descriptor() ([]byte, []int)
- func (this *Account) Equals(another protocol.Account) bool
- func (this *Account) GetCipherKey(size int) []byte
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- type AesCfb
- type Authenticator
- type ChaCha20
- type ChunkReader
- type Cipher
- type Config
- type Config_Cipher
- type KeyGenerator
- type Request
- type Server
- type ServerFactory
Constants ¶
View Source
const ( AddrTypeIPv4 = 1 AddrTypeIPv6 = 4 AddrTypeDomain = 3 )
View Source
const (
AuthSize = 10
)
Variables ¶
Functions ¶
Types ¶
type Account ¶
type Account struct {
Password string `protobuf:"bytes,1,opt,name=password" json:"password,omitempty"`
}
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(keygen KeyGenerator) *Authenticator
func (*Authenticator) Authenticate ¶
func (this *Authenticator) Authenticate(auth []byte, data []byte) []byte
type ChunkReader ¶
type ChunkReader struct {
// contains filtered or unexported fields
}
func NewChunkReader ¶
func NewChunkReader(reader io.Reader, auth *Authenticator) *ChunkReader
func (*ChunkReader) Read ¶
func (this *ChunkReader) Read() (*alloc.Buffer, error)
func (*ChunkReader) Release ¶ added in v1.11.1
func (this *ChunkReader) Release()
type Cipher ¶
type Config ¶
type Config struct { Cipher Config_Cipher `protobuf:"varint,1,opt,name=cipher,enum=com.v2ray.core.proxy.shadowsocks.Config_Cipher" json:"cipher,omitempty"` UdpEnabled bool `protobuf:"varint,2,opt,name=udp_enabled,json=udpEnabled" json:"udp_enabled,omitempty"` User *com_v2ray_core_common_protocol.User `protobuf:"bytes,3,opt,name=user" json:"user,omitempty"` }
func (*Config) GetUser ¶
func (m *Config) GetUser() *com_v2ray_core_common_protocol.User
type Config_Cipher ¶
type Config_Cipher int32
const ( Config_UNKNOWN Config_Cipher = 0 Config_AES_128_CFB Config_Cipher = 1 Config_AES_256_CFB Config_Cipher = 2 Config_CHACHA20 Config_Cipher = 3 Config_CHACHA20_IEFT Config_Cipher = 4 )
func (Config_Cipher) EnumDescriptor ¶
func (Config_Cipher) EnumDescriptor() ([]byte, []int)
func (Config_Cipher) String ¶
func (x Config_Cipher) String() string
type Server ¶ added in v1.12.9
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶ added in v1.12.9
type ServerFactory ¶ added in v1.17.1
type ServerFactory struct{}
func (*ServerFactory) Create ¶ added in v1.17.1
func (this *ServerFactory) Create(space app.Space, rawConfig interface{}, meta *proxy.InboundHandlerMeta) (proxy.InboundHandler, error)
func (*ServerFactory) StreamCapability ¶ added in v1.17.1
func (this *ServerFactory) StreamCapability() internet.StreamConnectionType
Click to show internal directories.
Click to hide internal directories.