Versions in this module Expand all Collapse all v4 v4.23.2 Apr 17, 2020 Changes in this version + type Account struct + Password string + Username string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (a *Account) AsAccount() (protocol.Account, error) + func (a *Account) Equals(another protocol.Account) bool + func (m *Account) GetPassword() string + func (m *Account) GetUsername() string + func (m *Account) Reset() + func (m *Account) String() string + func (m *Account) XXX_DiscardUnknown() + func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Account) XXX_Merge(src proto.Message) + func (m *Account) XXX_Size() int + func (m *Account) XXX_Unmarshal(b []byte) error + type Client struct + func NewClient(ctx context.Context, config *ClientConfig) (*Client, error) + func (c *Client) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error + type ClientConfig struct + Server []*protocol.ServerEndpoint + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ClientConfig) Descriptor() ([]byte, []int) + func (*ClientConfig) ProtoMessage() + func (m *ClientConfig) GetServer() []*protocol.ServerEndpoint + func (m *ClientConfig) Reset() + func (m *ClientConfig) String() string + func (m *ClientConfig) XXX_DiscardUnknown() + func (m *ClientConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ClientConfig) XXX_Merge(src proto.Message) + func (m *ClientConfig) XXX_Size() int + func (m *ClientConfig) XXX_Unmarshal(b []byte) error + type Server struct + func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) + func (*Server) Network() []net.Network + func (s *Server) Process(ctx context.Context, network net.Network, conn internet.Connection, ...) error + type ServerConfig struct + Accounts map[string]string + AllowTransparent bool + Timeout uint32 + UserLevel uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ServerConfig) Descriptor() ([]byte, []int) + func (*ServerConfig) ProtoMessage() + func (m *ServerConfig) GetAccounts() map[string]string + func (m *ServerConfig) GetAllowTransparent() bool + func (m *ServerConfig) GetTimeout() uint32 + func (m *ServerConfig) GetUserLevel() uint32 + func (m *ServerConfig) Reset() + func (m *ServerConfig) String() string + func (m *ServerConfig) XXX_DiscardUnknown() + func (m *ServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ServerConfig) XXX_Merge(src proto.Message) + func (m *ServerConfig) XXX_Size() int + func (m *ServerConfig) XXX_Unmarshal(b []byte) error + func (sc *ServerConfig) HasAccount(username, password string) bool Other modules containing this package github.com/unifyproxy/v2ray-core