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_trojan_config_proto protoreflect.FileDescriptor + type Account struct + Password string + func (*Account) Descriptor() ([]byte, []int) + func (*Account) ProtoMessage() + func (a *Account) AsAccount() (protocol.Account, error) + func (x *Account) GetPassword() string + func (x *Account) ProtoReflect() protoreflect.Message + func (x *Account) Reset() + func (x *Account) String() string + 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 + func (*ClientConfig) Descriptor() ([]byte, []int) + func (*ClientConfig) ProtoMessage() + func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint + func (x *ClientConfig) ProtoReflect() protoreflect.Message + func (x *ClientConfig) Reset() + func (x *ClientConfig) String() string + type ConnReader struct + Flow string + Target net.Destination + func (c *ConnReader) ParseHeader() error + func (c *ConnReader) Read(p []byte) (int, error) + func (c *ConnReader) ReadMultiBuffer() (buf.MultiBuffer, error) + type ConnWriter struct + Account *MemoryAccount + Target net.Destination + func (c *ConnWriter) Write(p []byte) (n int, err error) + func (c *ConnWriter) WriteMultiBuffer(mb buf.MultiBuffer) error + type Fallback struct + Alpn string + Dest string + Name string + Path string + Type string + Xver uint64 + func (*Fallback) Descriptor() ([]byte, []int) + func (*Fallback) ProtoMessage() + func (x *Fallback) GetAlpn() string + func (x *Fallback) GetDest() string + func (x *Fallback) GetName() string + func (x *Fallback) GetPath() string + func (x *Fallback) GetType() string + func (x *Fallback) GetXver() uint64 + func (x *Fallback) ProtoReflect() protoreflect.Message + func (x *Fallback) Reset() + func (x *Fallback) String() string + type MemoryAccount struct + Key []byte + Password string + func (a *MemoryAccount) Equals(another protocol.Account) bool + type PacketReader struct + func (r *PacketReader) ReadMultiBuffer() (buf.MultiBuffer, error) + type PacketWriter struct + Target net.Destination + func (w *PacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error + type Server struct + func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) + func (s *Server) AddUser(ctx context.Context, u *protocol.MemoryUser) error + func (s *Server) Network() []net.Network + func (s *Server) Process(ctx context.Context, network net.Network, conn stat.Connection, ...) error + func (s *Server) RemoveUser(ctx context.Context, e string) error + type ServerConfig struct + Fallbacks []*Fallback + Users []*protocol.User + func (*ServerConfig) Descriptor() ([]byte, []int) + func (*ServerConfig) ProtoMessage() + func (x *ServerConfig) GetFallbacks() []*Fallback + func (x *ServerConfig) GetUsers() []*protocol.User + func (x *ServerConfig) ProtoReflect() protoreflect.Message + func (x *ServerConfig) Reset() + func (x *ServerConfig) String() string + type Validator struct + func (v *Validator) Add(u *protocol.MemoryUser) error + func (v *Validator) Del(e string) error + func (v *Validator) Get(hash string) *protocol.MemoryUser