SYMBOL INDEX (5273 symbols across 609 files) FILE: annotations.go type Annotation (line 5) | type Annotation struct FILE: app/commander/commander.go type Commander (line 21) | type Commander struct method Type (line 59) | func (c *Commander) Type() interface{} { method Start (line 64) | func (c *Commander) Start() error { method Close (line 94) | func (c *Commander) Close() error { function NewCommander (line 30) | func NewCommander(ctx context.Context, config *Config) (*Commander, erro... function init (line 106) | func init() { FILE: app/commander/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 30) | type Config struct method Reset (line 42) | func (x *Config) Reset() { method String (line 51) | func (x *Config) String() string { method ProtoMessage (line 55) | func (*Config) ProtoMessage() {} method ProtoReflect (line 57) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 70) | func (*Config) Descriptor() ([]byte, []int) { method GetTag (line 74) | func (x *Config) GetTag() string { method GetService (line 81) | func (x *Config) GetService() []*serial.TypedMessage { function file_app_commander_config_proto_rawDescGZIP (line 116) | func file_app_commander_config_proto_rawDescGZIP() []byte { function init (line 137) | func init() { file_app_commander_config_proto_init() } function file_app_commander_config_proto_init (line 138) | func file_app_commander_config_proto_init() { FILE: app/commander/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/commander/outbound.go type OutboundListener (line 16) | type OutboundListener struct method add (line 21) | func (l *OutboundListener) add(conn net.Conn) { method Accept (line 32) | func (l *OutboundListener) Accept() (net.Conn, error) { method Close (line 42) | func (l *OutboundListener) Close() error { method Addr (line 57) | func (l *OutboundListener) Addr() net.Addr { type Outbound (line 65) | type Outbound struct method Dispatch (line 73) | func (co *Outbound) Dispatch(ctx context.Context, link *transport.Link) { method Tag (line 91) | func (co *Outbound) Tag() string { method Start (line 96) | func (co *Outbound) Start() error { method Close (line 104) | func (co *Outbound) Close() error { FILE: app/commander/service.go type Service (line 10) | type Service interface FILE: app/dispatcher/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type SessionConfig (line 28) | type SessionConfig struct method Reset (line 34) | func (x *SessionConfig) Reset() { method String (line 43) | func (x *SessionConfig) String() string { method ProtoMessage (line 47) | func (*SessionConfig) ProtoMessage() {} method ProtoReflect (line 49) | func (x *SessionConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*SessionConfig) Descriptor() ([]byte, []int) { type Config (line 66) | type Config struct method Reset (line 74) | func (x *Config) Reset() { method String (line 83) | func (x *Config) String() string { method ProtoMessage (line 87) | func (*Config) ProtoMessage() {} method ProtoReflect (line 89) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 102) | func (*Config) Descriptor() ([]byte, []int) { method GetSettings (line 106) | func (x *Config) GetSettings() *SessionConfig { function file_app_dispatcher_config_proto_rawDescGZIP (line 140) | func file_app_dispatcher_config_proto_rawDescGZIP() []byte { function init (line 161) | func init() { file_app_dispatcher_config_proto_init() } function file_app_dispatcher_config_proto_init (line 162) | func file_app_dispatcher_config_proto_init() { FILE: app/dispatcher/default.go type cachedReader (line 33) | type cachedReader struct method Cache (line 39) | func (r *cachedReader) Cache(b *buf.Buffer) { method readInternal (line 52) | func (r *cachedReader) readInternal() buf.MultiBuffer { method ReadMultiBuffer (line 65) | func (r *cachedReader) ReadMultiBuffer() (buf.MultiBuffer, error) { method ReadMultiBufferTimeout (line 74) | func (r *cachedReader) ReadMultiBufferTimeout(timeout time.Duration) (... method Interrupt (line 83) | func (r *cachedReader) Interrupt() { type DefaultDispatcher (line 93) | type DefaultDispatcher struct method Init (line 113) | func (d *DefaultDispatcher) Init(config *Config, om outbound.Manager, ... method Type (line 122) | func (*DefaultDispatcher) Type() interface{} { method Start (line 127) | func (*DefaultDispatcher) Start() error { method Close (line 132) | func (*DefaultDispatcher) Close() error { return nil } method getLink (line 134) | func (d *DefaultDispatcher) getLink(ctx context.Context) (*transport.L... method Dispatch (line 190) | func (d *DefaultDispatcher) Dispatch(ctx context.Context, destination ... method routedDispatch (line 260) | func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *... function init (line 100) | func init() { function shouldOverride (line 180) | func shouldOverride(result SniffResult, domainOverride []string) bool { function sniffer (line 230) | func sniffer(ctx context.Context, cReader *cachedReader) (SniffResult, e... FILE: app/dispatcher/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/dispatcher/sniffer.go type SniffResult (line 12) | type SniffResult interface type protocolSniffer (line 17) | type protocolSniffer type Sniffer (line 19) | type Sniffer struct method Sniff (line 35) | func (s *Sniffer) Sniff(payload []byte) (SniffResult, error) { function NewSniffer (line 23) | func NewSniffer() *Sniffer { FILE: app/dispatcher/stats.go type SizeStatWriter (line 11) | type SizeStatWriter struct method WriteMultiBuffer (line 16) | func (w *SizeStatWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 21) | func (w *SizeStatWriter) Close() error { method Interrupt (line 25) | func (w *SizeStatWriter) Interrupt() { FILE: app/dispatcher/stats_test.go type TestCounter (line 11) | type TestCounter method Value (line 13) | func (c *TestCounter) Value() int64 { method Add (line 17) | func (c *TestCounter) Add(v int64) int64 { method Set (line 23) | func (c *TestCounter) Set(v int64) int64 { function TestStatsWriter (line 28) | func TestStatsWriter(t *testing.T) { FILE: app/dns/config.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 28) | _ = proto.ProtoPackageIsVersion4 type DomainMatchingType (line 30) | type DomainMatchingType method Enum (line 55) | func (x DomainMatchingType) Enum() *DomainMatchingType { method String (line 61) | func (x DomainMatchingType) String() string { method Descriptor (line 65) | func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor { method Type (line 69) | func (DomainMatchingType) Type() protoreflect.EnumType { method Number (line 73) | func (x DomainMatchingType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 78) | func (DomainMatchingType) EnumDescriptor() ([]byte, []int) { constant DomainMatchingType_Full (line 33) | DomainMatchingType_Full DomainMatchingType = 0 constant DomainMatchingType_Subdomain (line 34) | DomainMatchingType_Subdomain DomainMatchingType = 1 constant DomainMatchingType_Keyword (line 35) | DomainMatchingType_Keyword DomainMatchingType = 2 constant DomainMatchingType_Regex (line 36) | DomainMatchingType_Regex DomainMatchingType = 3 type NameServer (line 82) | type NameServer struct method Reset (line 93) | func (x *NameServer) Reset() { method String (line 102) | func (x *NameServer) String() string { method ProtoMessage (line 106) | func (*NameServer) ProtoMessage() {} method ProtoReflect (line 108) | func (x *NameServer) ProtoReflect() protoreflect.Message { method Descriptor (line 121) | func (*NameServer) Descriptor() ([]byte, []int) { method GetAddress (line 125) | func (x *NameServer) GetAddress() *net.Endpoint { method GetPrioritizedDomain (line 132) | func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDoma... method GetGeoip (line 139) | func (x *NameServer) GetGeoip() []*router.GeoIP { method GetOriginalRules (line 146) | func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule { type Config (line 153) | type Config struct method Reset (line 179) | func (x *Config) Reset() { method String (line 188) | func (x *Config) String() string { method ProtoMessage (line 192) | func (*Config) ProtoMessage() {} method ProtoReflect (line 194) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 207) | func (*Config) Descriptor() ([]byte, []int) { method GetNameServers (line 212) | func (x *Config) GetNameServers() []*net.Endpoint { method GetNameServer (line 219) | func (x *Config) GetNameServer() []*NameServer { method GetHosts (line 227) | func (x *Config) GetHosts() map[string]*net.IPOrDomain { method GetClientIp (line 234) | func (x *Config) GetClientIp() []byte { method GetStaticHosts (line 241) | func (x *Config) GetStaticHosts() []*Config_HostMapping { method GetTag (line 248) | func (x *Config) GetTag() string { type NameServer_PriorityDomain (line 255) | type NameServer_PriorityDomain struct method Reset (line 264) | func (x *NameServer_PriorityDomain) Reset() { method String (line 273) | func (x *NameServer_PriorityDomain) String() string { method ProtoMessage (line 277) | func (*NameServer_PriorityDomain) ProtoMessage() {} method ProtoReflect (line 279) | func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message { method Descriptor (line 292) | func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) { method GetType (line 296) | func (x *NameServer_PriorityDomain) GetType() DomainMatchingType { method GetDomain (line 303) | func (x *NameServer_PriorityDomain) GetDomain() string { type NameServer_OriginalRule (line 310) | type NameServer_OriginalRule struct method Reset (line 319) | func (x *NameServer_OriginalRule) Reset() { method String (line 328) | func (x *NameServer_OriginalRule) String() string { method ProtoMessage (line 332) | func (*NameServer_OriginalRule) ProtoMessage() {} method ProtoReflect (line 334) | func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message { method Descriptor (line 347) | func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) { method GetRule (line 351) | func (x *NameServer_OriginalRule) GetRule() string { method GetSize (line 358) | func (x *NameServer_OriginalRule) GetSize() uint32 { type Config_HostMapping (line 365) | type Config_HostMapping struct method Reset (line 379) | func (x *Config_HostMapping) Reset() { method String (line 388) | func (x *Config_HostMapping) String() string { method ProtoMessage (line 392) | func (*Config_HostMapping) ProtoMessage() {} method ProtoReflect (line 394) | func (x *Config_HostMapping) ProtoReflect() protoreflect.Message { method Descriptor (line 407) | func (*Config_HostMapping) Descriptor() ([]byte, []int) { method GetType (line 411) | func (x *Config_HostMapping) GetType() DomainMatchingType { method GetDomain (line 418) | func (x *Config_HostMapping) GetDomain() string { method GetIp (line 425) | func (x *Config_HostMapping) GetIp() [][]byte { method GetProxiedDomain (line 432) | func (x *Config_HostMapping) GetProxiedDomain() string { function file_app_dns_config_proto_rawDescGZIP (line 532) | func file_app_dns_config_proto_rawDescGZIP() []byte { function init (line 572) | func init() { file_app_dns_config_proto_init() } function file_app_dns_config_proto_init (line 573) | func file_app_dns_config_proto_init() { FILE: app/dns/dnscommon.go function Fqdn (line 17) | func Fqdn(domain string) string { type record (line 24) | type record struct type IPRecord (line 30) | type IPRecord struct method getIPs (line 37) | func (r *IPRecord) getIPs() ([]net.Address, error) { function isNewer (line 47) | func isNewer(baseRec *IPRecord, newRec *IPRecord) bool { type dnsRequest (line 61) | type dnsRequest struct function genEDNS0Options (line 69) | func genEDNS0Options(clientIP net.IP) *dnsmessage.Resource { function buildReqMsgs (line 117) | func buildReqMsgs(domain string, option IPOption, reqIDGen func() uint16... function parseResponse (line 169) | func parseResponse(payload []byte) (*IPRecord, error) { FILE: app/dns/dnscommon_test.go function Test_parseResponse (line 17) | func Test_parseResponse(t *testing.T) { function Test_buildReqMsgs (line 91) | func Test_buildReqMsgs(t *testing.T) { function Test_genEDNS0Options (line 120) | func Test_genEDNS0Options(t *testing.T) { function TestFqdn (line 142) | func TestFqdn(t *testing.T) { FILE: app/dns/dohdns.go type DoHNameServer (line 32) | type DoHNameServer struct method Name (line 132) | func (s *DoHNameServer) Name() string { method Cleanup (line 137) | func (s *DoHNameServer) Cleanup() error { method updateIP (line 169) | func (s *DoHNameServer) updateIP(req *dnsRequest, ipRec *IPRecord) { method newReqID (line 210) | func (s *DoHNameServer) newReqID() uint16 { method sendQuery (line 214) | func (s *DoHNameServer) sendQuery(ctx context.Context, domain string, ... method dohHTTPSContext (line 269) | func (s *DoHNameServer) dohHTTPSContext(ctx context.Context, b []byte)... method findIPsForDomain (line 293) | func (s *DoHNameServer) findIPsForDomain(domain string, option IPOptio... method QueryIP (line 336) | func (s *DoHNameServer) QueryIP(ctx context.Context, domain string, op... function NewDoHNameServer (line 45) | func NewDoHNameServer(url *url.URL, dispatcher routing.Dispatcher, clien... function NewDoHLocalNameServer (line 88) | func NewDoHLocalNameServer(url *url.URL, clientIP net.IP) *DoHNameServer { function baseDOHNameServer (line 114) | func baseDOHNameServer(url *url.URL, prefix string, clientIP net.IP) *Do... FILE: app/dns/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/dns/hosts.go type StaticHosts (line 13) | type StaticHosts struct method LookupIP (line 108) | func (h *StaticHosts) LookupIP(domain string, option IPOption) []net.A... function toStrMatcher (line 25) | func toStrMatcher(t DomainMatchingType, domain string) (strmatcher.Match... function NewStaticHosts (line 38) | func NewStaticHosts(hosts []*Config_HostMapping, legacy map[string]*net.... function filterIP (line 94) | func filterIP(ips []net.Address, option IPOption) []net.Address { FILE: app/dns/hosts_test.go function TestStaticHosts (line 13) | func TestStaticHosts(t *testing.T) { FILE: app/dns/nameserver.go type IPOption (line 13) | type IPOption struct type Client (line 19) | type Client interface type localNameServer (line 27) | type localNameServer struct method QueryIP (line 31) | func (s *localNameServer) QueryIP(ctx context.Context, domain string, ... method Name (line 47) | func (s *localNameServer) Name() string { function NewLocalNameServer (line 51) | func NewLocalNameServer() *localNameServer { FILE: app/dns/nameserver_test.go function TestLocalNameServer (line 12) | func TestLocalNameServer(t *testing.T) { FILE: app/dns/server.go type Server (line 30) | type Server struct method Type (line 247) | func (*Server) Type() interface{} { method Start (line 252) | func (s *Server) Start() error { method Close (line 257) | func (s *Server) Close() error { method IsOwnLink (line 261) | func (s *Server) IsOwnLink(ctx context.Context) bool { method Match (line 267) | func (s *Server) Match(idx int, client Client, domain string, ips []ne... method queryIPTimeout (line 294) | func (s *Server) queryIPTimeout(idx int, client Client, domain string,... method LookupIP (line 313) | func (s *Server) LookupIP(domain string) ([]net.IP, error) { method LookupIPv4 (line 321) | func (s *Server) LookupIPv4(domain string) ([]net.IP, error) { method LookupIPv6 (line 329) | func (s *Server) LookupIPv6(domain string) ([]net.IP, error) { method lookupStatic (line 336) | func (s *Server) lookupStatic(domain string, option IPOption, depth in... method lookupIPInternal (line 360) | func (s *Server) lookupIPInternal(domain string, option IPOption) ([]n... type DomainMatcherInfo (line 43) | type DomainMatcherInfo struct type MultiGeoIPMatcher (line 49) | type MultiGeoIPMatcher struct method Match (line 56) | func (c *MultiGeoIPMatcher) Match(ip net.IP) bool { method HasMatcher (line 66) | func (c *MultiGeoIPMatcher) HasMatcher() bool { function generateRandomTag (line 70) | func generateRandomTag() string { function New (line 76) | func New(ctx context.Context, config *Config) (*Server, error) { function toNetIP (line 349) | func toNetIP(ips []net.Address) []net.IP { function init (line 440) | func init() { FILE: app/dns/server_test.go type staticHandler (line 25) | type staticHandler struct method ServeDNS (line 28) | func (*staticHandler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { function TestUDPServerSubnet (line 98) | func TestUDPServerSubnet(t *testing.T) { function TestUDPServer (line 153) | func TestUDPServer(t *testing.T) { function TestPrioritizedDomain (line 254) | func TestPrioritizedDomain(t *testing.T) { function TestUDPServerIPv6 (line 336) | func TestUDPServerIPv6(t *testing.T) { function TestStaticHostDomain (line 393) | func TestStaticHostDomain(t *testing.T) { function TestIPMatch (line 458) | func TestIPMatch(t *testing.T) { function TestLocalDomain (line 568) | func TestLocalDomain(t *testing.T) { function TestMultiMatchPrioritizedDomain (line 764) | func TestMultiMatchPrioritizedDomain(t *testing.T) { FILE: app/dns/udpns.go type ClassicNameServer (line 25) | type ClassicNameServer struct method Name (line 62) | func (s *ClassicNameServer) Name() string { method Cleanup (line 66) | func (s *ClassicNameServer) Cleanup() error { method HandleResponse (line 107) | func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet... method updateIP (line 143) | func (s *ClassicNameServer) updateIP(domain string, newRec record) { method newReqID (line 172) | func (s *ClassicNameServer) newReqID() uint16 { method addPendingRequest (line 176) | func (s *ClassicNameServer) addPendingRequest(req *dnsRequest) { method sendQuery (line 185) | func (s *ClassicNameServer) sendQuery(ctx context.Context, domain stri... method findIPsForDomain (line 204) | func (s *ClassicNameServer) findIPsForDomain(domain string, option IPO... method QueryIP (line 242) | func (s *ClassicNameServer) QueryIP(ctx context.Context, domain string... function NewClassicNameServer (line 38) | func NewClassicNameServer(address net.Destination, dispatcher routing.Di... FILE: app/log/command/command.go type LoggerServer (line 17) | type LoggerServer struct method RestartLogger (line 22) | func (s *LoggerServer) RestartLogger(ctx context.Context, request *Res... method mustEmbedUnimplementedLoggerServiceServer (line 36) | func (s *LoggerServer) mustEmbedUnimplementedLoggerServiceServer() {} type service (line 38) | type service struct method Register (line 42) | func (s *service) Register(server *grpc.Server) { function init (line 48) | func init() { FILE: app/log/command/command_test.go function TestLoggerRestart (line 18) | func TestLoggerRestart(t *testing.T) { FILE: app/log/command/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 34) | func (x *Config) Reset() { method String (line 43) | func (x *Config) String() string { method ProtoMessage (line 47) | func (*Config) ProtoMessage() {} method ProtoReflect (line 49) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*Config) Descriptor() ([]byte, []int) { type RestartLoggerRequest (line 66) | type RestartLoggerRequest struct method Reset (line 72) | func (x *RestartLoggerRequest) Reset() { method String (line 81) | func (x *RestartLoggerRequest) String() string { method ProtoMessage (line 85) | func (*RestartLoggerRequest) ProtoMessage() {} method ProtoReflect (line 87) | func (x *RestartLoggerRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 100) | func (*RestartLoggerRequest) Descriptor() ([]byte, []int) { type RestartLoggerResponse (line 104) | type RestartLoggerResponse struct method Reset (line 110) | func (x *RestartLoggerResponse) Reset() { method String (line 119) | func (x *RestartLoggerResponse) String() string { method ProtoMessage (line 123) | func (*RestartLoggerResponse) ProtoMessage() {} method ProtoReflect (line 125) | func (x *RestartLoggerResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 138) | func (*RestartLoggerResponse) Descriptor() ([]byte, []int) { function file_app_log_command_config_proto_rawDescGZIP (line 175) | func file_app_log_command_config_proto_rawDescGZIP() []byte { function init (line 198) | func init() { file_app_log_command_config_proto_init() } function file_app_log_command_config_proto_init (line 199) | func file_app_log_command_config_proto_init() { FILE: app/log/command/config_grpc.pb.go constant _ (line 14) | _ = grpc.SupportPackageIsVersion7 type LoggerServiceClient (line 19) | type LoggerServiceClient interface type loggerServiceClient (line 23) | type loggerServiceClient struct method RestartLogger (line 31) | func (c *loggerServiceClient) RestartLogger(ctx context.Context, in *R... function NewLoggerServiceClient (line 27) | func NewLoggerServiceClient(cc grpc.ClientConnInterface) LoggerServiceCl... type LoggerServiceServer (line 43) | type LoggerServiceServer interface type UnimplementedLoggerServiceServer (line 49) | type UnimplementedLoggerServiceServer struct method RestartLogger (line 52) | func (UnimplementedLoggerServiceServer) RestartLogger(context.Context,... method mustEmbedUnimplementedLoggerServiceServer (line 55) | func (UnimplementedLoggerServiceServer) mustEmbedUnimplementedLoggerSe... type UnsafeLoggerServiceServer (line 60) | type UnsafeLoggerServiceServer interface function RegisterLoggerServiceServer (line 64) | func RegisterLoggerServiceServer(s *grpc.Server, srv LoggerServiceServer) { function _LoggerService_RestartLogger_Handler (line 68) | func _LoggerService_RestartLogger_Handler(srv interface{}, ctx context.C... FILE: app/log/command/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/log/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type LogType (line 29) | type LogType method Enum (line 54) | func (x LogType) Enum() *LogType { method String (line 60) | func (x LogType) String() string { method Descriptor (line 64) | func (LogType) Descriptor() protoreflect.EnumDescriptor { method Type (line 68) | func (LogType) Type() protoreflect.EnumType { method Number (line 72) | func (x LogType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 77) | func (LogType) EnumDescriptor() ([]byte, []int) { constant LogType_None (line 32) | LogType_None LogType = 0 constant LogType_Console (line 33) | LogType_Console LogType = 1 constant LogType_File (line 34) | LogType_File LogType = 2 constant LogType_Event (line 35) | LogType_Event LogType = 3 type Config (line 81) | type Config struct method Reset (line 93) | func (x *Config) Reset() { method String (line 102) | func (x *Config) String() string { method ProtoMessage (line 106) | func (*Config) ProtoMessage() {} method ProtoReflect (line 108) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 121) | func (*Config) Descriptor() ([]byte, []int) { method GetErrorLogType (line 125) | func (x *Config) GetErrorLogType() LogType { method GetErrorLogLevel (line 132) | func (x *Config) GetErrorLogLevel() log.Severity { method GetErrorLogPath (line 139) | func (x *Config) GetErrorLogPath() string { method GetAccessLogType (line 146) | func (x *Config) GetAccessLogType() LogType { method GetAccessLogPath (line 153) | func (x *Config) GetAccessLogPath() string { function file_app_log_config_proto_rawDescGZIP (line 202) | func file_app_log_config_proto_rawDescGZIP() []byte { function init (line 227) | func init() { file_app_log_config_proto_init() } function file_app_log_config_proto_init (line 228) | func file_app_log_config_proto_init() { FILE: app/log/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/log/log.go type Instance (line 16) | type Instance struct method initAccessLogger (line 42) | func (g *Instance) initAccessLogger() error { method initErrorLogger (line 53) | func (g *Instance) initErrorLogger() error { method Type (line 65) | func (*Instance) Type() interface{} { method startInternal (line 69) | func (g *Instance) startInternal() error { method Start (line 90) | func (g *Instance) Start() error { method Handle (line 95) | func (g *Instance) Handle(msg log.Message) { method Close (line 118) | func (g *Instance) Close() error { function New (line 25) | func New(ctx context.Context, config *Config) (*Instance, error) { function init (line 139) | func init() { FILE: app/log/log_creator.go type HandlerCreatorOptions (line 10) | type HandlerCreatorOptions struct type HandlerCreator (line 14) | type HandlerCreator function RegisterHandlerCreator (line 20) | func RegisterHandlerCreator(logType LogType, f HandlerCreator) error { function createHandler (line 29) | func createHandler(logType LogType, options HandlerCreatorOptions) (log.... function init (line 37) | func init() { FILE: app/log/log_test.go function TestCustomLogHandler (line 14) | func TestCustomLogHandler(t *testing.T) { FILE: app/policy/config.go method Duration (line 10) | func (s *Second) Duration() time.Duration { function defaultPolicy (line 17) | func defaultPolicy() *Policy { method overrideWith (line 33) | func (p *Policy_Timeout) overrideWith(another *Policy_Timeout) { method overrideWith (line 48) | func (p *Policy) overrideWith(another *Policy) { method ToCorePolicy (line 64) | func (p *Policy) ToCorePolicy() policy.Session { method ToCorePolicy (line 84) | func (p *SystemPolicy) ToCorePolicy() policy.System { FILE: app/policy/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Second (line 28) | type Second struct method Reset (line 36) | func (x *Second) Reset() { method String (line 45) | func (x *Second) String() string { method ProtoMessage (line 49) | func (*Second) ProtoMessage() {} method ProtoReflect (line 51) | func (x *Second) ProtoReflect() protoreflect.Message { method Descriptor (line 64) | func (*Second) Descriptor() ([]byte, []int) { method GetValue (line 68) | func (x *Second) GetValue() uint32 { type Policy (line 75) | type Policy struct method Reset (line 85) | func (x *Policy) Reset() { method String (line 94) | func (x *Policy) String() string { method ProtoMessage (line 98) | func (*Policy) ProtoMessage() {} method ProtoReflect (line 100) | func (x *Policy) ProtoReflect() protoreflect.Message { method Descriptor (line 113) | func (*Policy) Descriptor() ([]byte, []int) { method GetTimeout (line 117) | func (x *Policy) GetTimeout() *Policy_Timeout { method GetStats (line 124) | func (x *Policy) GetStats() *Policy_Stats { method GetBuffer (line 131) | func (x *Policy) GetBuffer() *Policy_Buffer { type SystemPolicy (line 138) | type SystemPolicy struct method Reset (line 146) | func (x *SystemPolicy) Reset() { method String (line 155) | func (x *SystemPolicy) String() string { method ProtoMessage (line 159) | func (*SystemPolicy) ProtoMessage() {} method ProtoReflect (line 161) | func (x *SystemPolicy) ProtoReflect() protoreflect.Message { method Descriptor (line 174) | func (*SystemPolicy) Descriptor() ([]byte, []int) { method GetStats (line 178) | func (x *SystemPolicy) GetStats() *SystemPolicy_Stats { type Config (line 185) | type Config struct method Reset (line 194) | func (x *Config) Reset() { method String (line 203) | func (x *Config) String() string { method ProtoMessage (line 207) | func (*Config) ProtoMessage() {} method ProtoReflect (line 209) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 222) | func (*Config) Descriptor() ([]byte, []int) { method GetLevel (line 226) | func (x *Config) GetLevel() map[uint32]*Policy { method GetSystem (line 233) | func (x *Config) GetSystem() *SystemPolicy { type Policy_Timeout (line 241) | type Policy_Timeout struct method Reset (line 252) | func (x *Policy_Timeout) Reset() { method String (line 261) | func (x *Policy_Timeout) String() string { method ProtoMessage (line 265) | func (*Policy_Timeout) ProtoMessage() {} method ProtoReflect (line 267) | func (x *Policy_Timeout) ProtoReflect() protoreflect.Message { method Descriptor (line 280) | func (*Policy_Timeout) Descriptor() ([]byte, []int) { method GetHandshake (line 284) | func (x *Policy_Timeout) GetHandshake() *Second { method GetConnectionIdle (line 291) | func (x *Policy_Timeout) GetConnectionIdle() *Second { method GetUplinkOnly (line 298) | func (x *Policy_Timeout) GetUplinkOnly() *Second { method GetDownlinkOnly (line 305) | func (x *Policy_Timeout) GetDownlinkOnly() *Second { type Policy_Stats (line 312) | type Policy_Stats struct method Reset (line 321) | func (x *Policy_Stats) Reset() { method String (line 330) | func (x *Policy_Stats) String() string { method ProtoMessage (line 334) | func (*Policy_Stats) ProtoMessage() {} method ProtoReflect (line 336) | func (x *Policy_Stats) ProtoReflect() protoreflect.Message { method Descriptor (line 349) | func (*Policy_Stats) Descriptor() ([]byte, []int) { method GetUserUplink (line 353) | func (x *Policy_Stats) GetUserUplink() bool { method GetUserDownlink (line 360) | func (x *Policy_Stats) GetUserDownlink() bool { type Policy_Buffer (line 367) | type Policy_Buffer struct method Reset (line 376) | func (x *Policy_Buffer) Reset() { method String (line 385) | func (x *Policy_Buffer) String() string { method ProtoMessage (line 389) | func (*Policy_Buffer) ProtoMessage() {} method ProtoReflect (line 391) | func (x *Policy_Buffer) ProtoReflect() protoreflect.Message { method Descriptor (line 404) | func (*Policy_Buffer) Descriptor() ([]byte, []int) { method GetConnection (line 408) | func (x *Policy_Buffer) GetConnection() int32 { type SystemPolicy_Stats (line 415) | type SystemPolicy_Stats struct method Reset (line 426) | func (x *SystemPolicy_Stats) Reset() { method String (line 435) | func (x *SystemPolicy_Stats) String() string { method ProtoMessage (line 439) | func (*SystemPolicy_Stats) ProtoMessage() {} method ProtoReflect (line 441) | func (x *SystemPolicy_Stats) ProtoReflect() protoreflect.Message { method Descriptor (line 454) | func (*SystemPolicy_Stats) Descriptor() ([]byte, []int) { method GetInboundUplink (line 458) | func (x *SystemPolicy_Stats) GetInboundUplink() bool { method GetInboundDownlink (line 465) | func (x *SystemPolicy_Stats) GetInboundDownlink() bool { method GetOutboundUplink (line 472) | func (x *SystemPolicy_Stats) GetOutboundUplink() bool { method GetOutboundDownlink (line 479) | func (x *SystemPolicy_Stats) GetOutboundDownlink() bool { function file_app_policy_config_proto_rawDescGZIP (line 575) | func file_app_policy_config_proto_rawDescGZIP() []byte { function init (line 613) | func init() { file_app_policy_config_proto_init() } function file_app_policy_config_proto_init (line 614) | func file_app_policy_config_proto_init() { FILE: app/policy/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/policy/manager.go type Instance (line 11) | type Instance struct method Type (line 34) | func (*Instance) Type() interface{} { method ForLevel (line 39) | func (m *Instance) ForLevel(level uint32) policy.Session { method ForSystem (line 47) | func (m *Instance) ForSystem() policy.System { method Start (line 55) | func (m *Instance) Start() error { method Close (line 60) | func (m *Instance) Close() error { function New (line 17) | func New(ctx context.Context, config *Config) (*Instance, error) { function init (line 64) | func init() { FILE: app/policy/manager_test.go function TestPolicy (line 13) | func TestPolicy(t *testing.T) { FILE: app/proxyman/command/command.go type InboundOperation (line 18) | type InboundOperation interface type OutboundOperation (line 24) | type OutboundOperation interface function getInbound (line 29) | func getInbound(handler inbound.Handler) (proxy.Inbound, error) { method ApplyInbound (line 38) | func (op *AddUserOperation) ApplyInbound(ctx context.Context, handler in... method ApplyInbound (line 55) | func (op *RemoveUserOperation) ApplyInbound(ctx context.Context, handler... type handlerServer (line 67) | type handlerServer struct method AddInbound (line 73) | func (s *handlerServer) AddInbound(ctx context.Context, request *AddIn... method RemoveInbound (line 81) | func (s *handlerServer) RemoveInbound(ctx context.Context, request *Re... method AlterInbound (line 85) | func (s *handlerServer) AlterInbound(ctx context.Context, request *Alt... method AddOutbound (line 103) | func (s *handlerServer) AddOutbound(ctx context.Context, request *AddO... method RemoveOutbound (line 110) | func (s *handlerServer) RemoveOutbound(ctx context.Context, request *R... method AlterOutbound (line 114) | func (s *handlerServer) AlterOutbound(ctx context.Context, request *Al... method mustEmbedUnimplementedHandlerServiceServer (line 128) | func (s *handlerServer) mustEmbedUnimplementedHandlerServiceServer() {} type service (line 130) | type service struct method Register (line 134) | func (s *service) Register(server *grpc.Server) { function init (line 145) | func init() { FILE: app/proxyman/command/command.pb.go constant _ (line 22) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 24) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 29) | _ = proto.ProtoPackageIsVersion4 type AddUserOperation (line 31) | type AddUserOperation struct method Reset (line 39) | func (x *AddUserOperation) Reset() { method String (line 48) | func (x *AddUserOperation) String() string { method ProtoMessage (line 52) | func (*AddUserOperation) ProtoMessage() {} method ProtoReflect (line 54) | func (x *AddUserOperation) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*AddUserOperation) Descriptor() ([]byte, []int) { method GetUser (line 71) | func (x *AddUserOperation) GetUser() *protocol.User { type RemoveUserOperation (line 78) | type RemoveUserOperation struct method Reset (line 86) | func (x *RemoveUserOperation) Reset() { method String (line 95) | func (x *RemoveUserOperation) String() string { method ProtoMessage (line 99) | func (*RemoveUserOperation) ProtoMessage() {} method ProtoReflect (line 101) | func (x *RemoveUserOperation) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*RemoveUserOperation) Descriptor() ([]byte, []int) { method GetEmail (line 118) | func (x *RemoveUserOperation) GetEmail() string { type AddInboundRequest (line 125) | type AddInboundRequest struct method Reset (line 133) | func (x *AddInboundRequest) Reset() { method String (line 142) | func (x *AddInboundRequest) String() string { method ProtoMessage (line 146) | func (*AddInboundRequest) ProtoMessage() {} method ProtoReflect (line 148) | func (x *AddInboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 161) | func (*AddInboundRequest) Descriptor() ([]byte, []int) { method GetInbound (line 165) | func (x *AddInboundRequest) GetInbound() *core.InboundHandlerConfig { type AddInboundResponse (line 172) | type AddInboundResponse struct method Reset (line 178) | func (x *AddInboundResponse) Reset() { method String (line 187) | func (x *AddInboundResponse) String() string { method ProtoMessage (line 191) | func (*AddInboundResponse) ProtoMessage() {} method ProtoReflect (line 193) | func (x *AddInboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 206) | func (*AddInboundResponse) Descriptor() ([]byte, []int) { type RemoveInboundRequest (line 210) | type RemoveInboundRequest struct method Reset (line 218) | func (x *RemoveInboundRequest) Reset() { method String (line 227) | func (x *RemoveInboundRequest) String() string { method ProtoMessage (line 231) | func (*RemoveInboundRequest) ProtoMessage() {} method ProtoReflect (line 233) | func (x *RemoveInboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 246) | func (*RemoveInboundRequest) Descriptor() ([]byte, []int) { method GetTag (line 250) | func (x *RemoveInboundRequest) GetTag() string { type RemoveInboundResponse (line 257) | type RemoveInboundResponse struct method Reset (line 263) | func (x *RemoveInboundResponse) Reset() { method String (line 272) | func (x *RemoveInboundResponse) String() string { method ProtoMessage (line 276) | func (*RemoveInboundResponse) ProtoMessage() {} method ProtoReflect (line 278) | func (x *RemoveInboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 291) | func (*RemoveInboundResponse) Descriptor() ([]byte, []int) { type AlterInboundRequest (line 295) | type AlterInboundRequest struct method Reset (line 304) | func (x *AlterInboundRequest) Reset() { method String (line 313) | func (x *AlterInboundRequest) String() string { method ProtoMessage (line 317) | func (*AlterInboundRequest) ProtoMessage() {} method ProtoReflect (line 319) | func (x *AlterInboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 332) | func (*AlterInboundRequest) Descriptor() ([]byte, []int) { method GetTag (line 336) | func (x *AlterInboundRequest) GetTag() string { method GetOperation (line 343) | func (x *AlterInboundRequest) GetOperation() *serial.TypedMessage { type AlterInboundResponse (line 350) | type AlterInboundResponse struct method Reset (line 356) | func (x *AlterInboundResponse) Reset() { method String (line 365) | func (x *AlterInboundResponse) String() string { method ProtoMessage (line 369) | func (*AlterInboundResponse) ProtoMessage() {} method ProtoReflect (line 371) | func (x *AlterInboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 384) | func (*AlterInboundResponse) Descriptor() ([]byte, []int) { type AddOutboundRequest (line 388) | type AddOutboundRequest struct method Reset (line 396) | func (x *AddOutboundRequest) Reset() { method String (line 405) | func (x *AddOutboundRequest) String() string { method ProtoMessage (line 409) | func (*AddOutboundRequest) ProtoMessage() {} method ProtoReflect (line 411) | func (x *AddOutboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 424) | func (*AddOutboundRequest) Descriptor() ([]byte, []int) { method GetOutbound (line 428) | func (x *AddOutboundRequest) GetOutbound() *core.OutboundHandlerConfig { type AddOutboundResponse (line 435) | type AddOutboundResponse struct method Reset (line 441) | func (x *AddOutboundResponse) Reset() { method String (line 450) | func (x *AddOutboundResponse) String() string { method ProtoMessage (line 454) | func (*AddOutboundResponse) ProtoMessage() {} method ProtoReflect (line 456) | func (x *AddOutboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 469) | func (*AddOutboundResponse) Descriptor() ([]byte, []int) { type RemoveOutboundRequest (line 473) | type RemoveOutboundRequest struct method Reset (line 481) | func (x *RemoveOutboundRequest) Reset() { method String (line 490) | func (x *RemoveOutboundRequest) String() string { method ProtoMessage (line 494) | func (*RemoveOutboundRequest) ProtoMessage() {} method ProtoReflect (line 496) | func (x *RemoveOutboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 509) | func (*RemoveOutboundRequest) Descriptor() ([]byte, []int) { method GetTag (line 513) | func (x *RemoveOutboundRequest) GetTag() string { type RemoveOutboundResponse (line 520) | type RemoveOutboundResponse struct method Reset (line 526) | func (x *RemoveOutboundResponse) Reset() { method String (line 535) | func (x *RemoveOutboundResponse) String() string { method ProtoMessage (line 539) | func (*RemoveOutboundResponse) ProtoMessage() {} method ProtoReflect (line 541) | func (x *RemoveOutboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 554) | func (*RemoveOutboundResponse) Descriptor() ([]byte, []int) { type AlterOutboundRequest (line 558) | type AlterOutboundRequest struct method Reset (line 567) | func (x *AlterOutboundRequest) Reset() { method String (line 576) | func (x *AlterOutboundRequest) String() string { method ProtoMessage (line 580) | func (*AlterOutboundRequest) ProtoMessage() {} method ProtoReflect (line 582) | func (x *AlterOutboundRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 595) | func (*AlterOutboundRequest) Descriptor() ([]byte, []int) { method GetTag (line 599) | func (x *AlterOutboundRequest) GetTag() string { method GetOperation (line 606) | func (x *AlterOutboundRequest) GetOperation() *serial.TypedMessage { type AlterOutboundResponse (line 613) | type AlterOutboundResponse struct method Reset (line 619) | func (x *AlterOutboundResponse) Reset() { method String (line 628) | func (x *AlterOutboundResponse) String() string { method ProtoMessage (line 632) | func (*AlterOutboundResponse) ProtoMessage() {} method ProtoReflect (line 634) | func (x *AlterOutboundResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 647) | func (*AlterOutboundResponse) Descriptor() ([]byte, []int) { type Config (line 651) | type Config struct method Reset (line 657) | func (x *Config) Reset() { method String (line 666) | func (x *Config) String() string { method ProtoMessage (line 670) | func (*Config) ProtoMessage() {} method ProtoReflect (line 672) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 685) | func (*Config) Descriptor() ([]byte, []int) { function file_app_proxyman_command_command_proto_rawDescGZIP (line 812) | func file_app_proxyman_command_command_proto_rawDescGZIP() []byte { function init (line 866) | func init() { file_app_proxyman_command_command_proto_init() } function file_app_proxyman_command_command_proto_init (line 867) | func file_app_proxyman_command_command_proto_init() { FILE: app/proxyman/command/command_grpc.pb.go constant _ (line 14) | _ = grpc.SupportPackageIsVersion7 type HandlerServiceClient (line 19) | type HandlerServiceClient interface type handlerServiceClient (line 28) | type handlerServiceClient struct method AddInbound (line 36) | func (c *handlerServiceClient) AddInbound(ctx context.Context, in *Add... method RemoveInbound (line 45) | func (c *handlerServiceClient) RemoveInbound(ctx context.Context, in *... method AlterInbound (line 54) | func (c *handlerServiceClient) AlterInbound(ctx context.Context, in *A... method AddOutbound (line 63) | func (c *handlerServiceClient) AddOutbound(ctx context.Context, in *Ad... method RemoveOutbound (line 72) | func (c *handlerServiceClient) RemoveOutbound(ctx context.Context, in ... method AlterOutbound (line 81) | func (c *handlerServiceClient) AlterOutbound(ctx context.Context, in *... function NewHandlerServiceClient (line 32) | func NewHandlerServiceClient(cc grpc.ClientConnInterface) HandlerService... type HandlerServiceServer (line 93) | type HandlerServiceServer interface type UnimplementedHandlerServiceServer (line 104) | type UnimplementedHandlerServiceServer struct method AddInbound (line 107) | func (UnimplementedHandlerServiceServer) AddInbound(context.Context, *... method RemoveInbound (line 110) | func (UnimplementedHandlerServiceServer) RemoveInbound(context.Context... method AlterInbound (line 113) | func (UnimplementedHandlerServiceServer) AlterInbound(context.Context,... method AddOutbound (line 116) | func (UnimplementedHandlerServiceServer) AddOutbound(context.Context, ... method RemoveOutbound (line 119) | func (UnimplementedHandlerServiceServer) RemoveOutbound(context.Contex... method AlterOutbound (line 122) | func (UnimplementedHandlerServiceServer) AlterOutbound(context.Context... method mustEmbedUnimplementedHandlerServiceServer (line 125) | func (UnimplementedHandlerServiceServer) mustEmbedUnimplementedHandler... type UnsafeHandlerServiceServer (line 130) | type UnsafeHandlerServiceServer interface function RegisterHandlerServiceServer (line 134) | func RegisterHandlerServiceServer(s *grpc.Server, srv HandlerServiceServ... function _HandlerService_AddInbound_Handler (line 138) | func _HandlerService_AddInbound_Handler(srv interface{}, ctx context.Con... function _HandlerService_RemoveInbound_Handler (line 156) | func _HandlerService_RemoveInbound_Handler(srv interface{}, ctx context.... function _HandlerService_AlterInbound_Handler (line 174) | func _HandlerService_AlterInbound_Handler(srv interface{}, ctx context.C... function _HandlerService_AddOutbound_Handler (line 192) | func _HandlerService_AddOutbound_Handler(srv interface{}, ctx context.Co... function _HandlerService_RemoveOutbound_Handler (line 210) | func _HandlerService_RemoveOutbound_Handler(srv interface{}, ctx context... function _HandlerService_AlterOutbound_Handler (line 228) | func _HandlerService_AlterOutbound_Handler(srv interface{}, ctx context.... FILE: app/proxyman/command/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/proxyman/config.go method GetConcurrencyValue (line 3) | func (s *AllocationStrategy) GetConcurrencyValue() uint32 { method GetRefreshValue (line 10) | func (s *AllocationStrategy) GetRefreshValue() uint32 { method GetEffectiveSniffingSettings (line 17) | func (c *ReceiverConfig) GetEffectiveSniffingSettings() *SniffingConfig { FILE: app/proxyman/config.pb.go constant _ (line 22) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 24) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 29) | _ = proto.ProtoPackageIsVersion4 type KnownProtocols (line 31) | type KnownProtocols method Enum (line 50) | func (x KnownProtocols) Enum() *KnownProtocols { method String (line 56) | func (x KnownProtocols) String() string { method Descriptor (line 60) | func (KnownProtocols) Descriptor() protoreflect.EnumDescriptor { method Type (line 64) | func (KnownProtocols) Type() protoreflect.EnumType { method Number (line 68) | func (x KnownProtocols) Number() protoreflect.EnumNumber { method EnumDescriptor (line 73) | func (KnownProtocols) EnumDescriptor() ([]byte, []int) { constant KnownProtocols_HTTP (line 34) | KnownProtocols_HTTP KnownProtocols = 0 constant KnownProtocols_TLS (line 35) | KnownProtocols_TLS KnownProtocols = 1 type AllocationStrategy_Type (line 77) | type AllocationStrategy_Type method Enum (line 102) | func (x AllocationStrategy_Type) Enum() *AllocationStrategy_Type { method String (line 108) | func (x AllocationStrategy_Type) String() string { method Descriptor (line 112) | func (AllocationStrategy_Type) Descriptor() protoreflect.EnumDescriptor { method Type (line 116) | func (AllocationStrategy_Type) Type() protoreflect.EnumType { method Number (line 120) | func (x AllocationStrategy_Type) Number() protoreflect.EnumNumber { method EnumDescriptor (line 125) | func (AllocationStrategy_Type) EnumDescriptor() ([]byte, []int) { constant AllocationStrategy_Always (line 81) | AllocationStrategy_Always AllocationStrategy_Type = 0 constant AllocationStrategy_Random (line 83) | AllocationStrategy_Random AllocationStrategy_Type = 1 constant AllocationStrategy_External (line 85) | AllocationStrategy_External AllocationStrategy_Type = 2 type InboundConfig (line 129) | type InboundConfig struct method Reset (line 135) | func (x *InboundConfig) Reset() { method String (line 144) | func (x *InboundConfig) String() string { method ProtoMessage (line 148) | func (*InboundConfig) ProtoMessage() {} method ProtoReflect (line 150) | func (x *InboundConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 163) | func (*InboundConfig) Descriptor() ([]byte, []int) { type AllocationStrategy (line 167) | type AllocationStrategy struct method Reset (line 181) | func (x *AllocationStrategy) Reset() { method String (line 190) | func (x *AllocationStrategy) String() string { method ProtoMessage (line 194) | func (*AllocationStrategy) ProtoMessage() {} method ProtoReflect (line 196) | func (x *AllocationStrategy) ProtoReflect() protoreflect.Message { method Descriptor (line 209) | func (*AllocationStrategy) Descriptor() ([]byte, []int) { method GetType (line 213) | func (x *AllocationStrategy) GetType() AllocationStrategy_Type { method GetConcurrency (line 220) | func (x *AllocationStrategy) GetConcurrency() *AllocationStrategy_Allo... method GetRefresh (line 227) | func (x *AllocationStrategy) GetRefresh() *AllocationStrategy_Allocati... type SniffingConfig (line 234) | type SniffingConfig struct method Reset (line 246) | func (x *SniffingConfig) Reset() { method String (line 255) | func (x *SniffingConfig) String() string { method ProtoMessage (line 259) | func (*SniffingConfig) ProtoMessage() {} method ProtoReflect (line 261) | func (x *SniffingConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 274) | func (*SniffingConfig) Descriptor() ([]byte, []int) { method GetEnabled (line 278) | func (x *SniffingConfig) GetEnabled() bool { method GetDestinationOverride (line 285) | func (x *SniffingConfig) GetDestinationOverride() []string { type ReceiverConfig (line 292) | type ReceiverConfig struct method Reset (line 312) | func (x *ReceiverConfig) Reset() { method String (line 321) | func (x *ReceiverConfig) String() string { method ProtoMessage (line 325) | func (*ReceiverConfig) ProtoMessage() {} method ProtoReflect (line 327) | func (x *ReceiverConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 340) | func (*ReceiverConfig) Descriptor() ([]byte, []int) { method GetPortRange (line 344) | func (x *ReceiverConfig) GetPortRange() *net.PortRange { method GetListen (line 351) | func (x *ReceiverConfig) GetListen() *net.IPOrDomain { method GetAllocationStrategy (line 358) | func (x *ReceiverConfig) GetAllocationStrategy() *AllocationStrategy { method GetStreamSettings (line 365) | func (x *ReceiverConfig) GetStreamSettings() *internet.StreamConfig { method GetReceiveOriginalDestination (line 372) | func (x *ReceiverConfig) GetReceiveOriginalDestination() bool { method GetDomainOverride (line 380) | func (x *ReceiverConfig) GetDomainOverride() []KnownProtocols { method GetSniffingSettings (line 387) | func (x *ReceiverConfig) GetSniffingSettings() *SniffingConfig { type InboundHandlerConfig (line 394) | type InboundHandlerConfig struct method Reset (line 404) | func (x *InboundHandlerConfig) Reset() { method String (line 413) | func (x *InboundHandlerConfig) String() string { method ProtoMessage (line 417) | func (*InboundHandlerConfig) ProtoMessage() {} method ProtoReflect (line 419) | func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 432) | func (*InboundHandlerConfig) Descriptor() ([]byte, []int) { method GetTag (line 436) | func (x *InboundHandlerConfig) GetTag() string { method GetReceiverSettings (line 443) | func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMess... method GetProxySettings (line 450) | func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage { type OutboundConfig (line 457) | type OutboundConfig struct method Reset (line 463) | func (x *OutboundConfig) Reset() { method String (line 472) | func (x *OutboundConfig) String() string { method ProtoMessage (line 476) | func (*OutboundConfig) ProtoMessage() {} method ProtoReflect (line 478) | func (x *OutboundConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 491) | func (*OutboundConfig) Descriptor() ([]byte, []int) { type SenderConfig (line 495) | type SenderConfig struct method Reset (line 507) | func (x *SenderConfig) Reset() { method String (line 516) | func (x *SenderConfig) String() string { method ProtoMessage (line 520) | func (*SenderConfig) ProtoMessage() {} method ProtoReflect (line 522) | func (x *SenderConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 535) | func (*SenderConfig) Descriptor() ([]byte, []int) { method GetVia (line 539) | func (x *SenderConfig) GetVia() *net.IPOrDomain { method GetStreamSettings (line 546) | func (x *SenderConfig) GetStreamSettings() *internet.StreamConfig { method GetProxySettings (line 553) | func (x *SenderConfig) GetProxySettings() *internet.ProxyConfig { method GetMultiplexSettings (line 560) | func (x *SenderConfig) GetMultiplexSettings() *MultiplexingConfig { type MultiplexingConfig (line 567) | type MultiplexingConfig struct method Reset (line 578) | func (x *MultiplexingConfig) Reset() { method String (line 587) | func (x *MultiplexingConfig) String() string { method ProtoMessage (line 591) | func (*MultiplexingConfig) ProtoMessage() {} method ProtoReflect (line 593) | func (x *MultiplexingConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 606) | func (*MultiplexingConfig) Descriptor() ([]byte, []int) { method GetEnabled (line 610) | func (x *MultiplexingConfig) GetEnabled() bool { method GetConcurrency (line 617) | func (x *MultiplexingConfig) GetConcurrency() uint32 { type AllocationStrategy_AllocationStrategyConcurrency (line 624) | type AllocationStrategy_AllocationStrategyConcurrency struct method Reset (line 632) | func (x *AllocationStrategy_AllocationStrategyConcurrency) Reset() { method String (line 641) | func (x *AllocationStrategy_AllocationStrategyConcurrency) String() st... method ProtoMessage (line 645) | func (*AllocationStrategy_AllocationStrategyConcurrency) ProtoMessage(... method ProtoReflect (line 647) | func (x *AllocationStrategy_AllocationStrategyConcurrency) ProtoReflec... method Descriptor (line 660) | func (*AllocationStrategy_AllocationStrategyConcurrency) Descriptor() ... method GetValue (line 664) | func (x *AllocationStrategy_AllocationStrategyConcurrency) GetValue() ... type AllocationStrategy_AllocationStrategyRefresh (line 671) | type AllocationStrategy_AllocationStrategyRefresh struct method Reset (line 679) | func (x *AllocationStrategy_AllocationStrategyRefresh) Reset() { method String (line 688) | func (x *AllocationStrategy_AllocationStrategyRefresh) String() string { method ProtoMessage (line 692) | func (*AllocationStrategy_AllocationStrategyRefresh) ProtoMessage() {} method ProtoReflect (line 694) | func (x *AllocationStrategy_AllocationStrategyRefresh) ProtoReflect() ... method Descriptor (line 707) | func (*AllocationStrategy_AllocationStrategyRefresh) Descriptor() ([]b... method GetValue (line 711) | func (x *AllocationStrategy_AllocationStrategyRefresh) GetValue() uint... function file_app_proxyman_config_proto_rawDescGZIP (line 858) | func file_app_proxyman_config_proto_rawDescGZIP() []byte { function init (line 909) | func init() { file_app_proxyman_config_proto_init() } function file_app_proxyman_config_proto_init (line 910) | func file_app_proxyman_config_proto_init() { FILE: app/proxyman/inbound/always.go function getStatCounter (line 19) | func getStatCounter(v *core.Instance, tag string) (stats.Counter, stats.... type AlwaysOnInboundHandler (line 44) | type AlwaysOnInboundHandler struct method Start (line 130) | func (h *AlwaysOnInboundHandler) Start() error { method Close (line 140) | func (h *AlwaysOnInboundHandler) Close() error { method GetRandomInboundProxy (line 152) | func (h *AlwaysOnInboundHandler) GetRandomInboundProxy() (interface{},... method Tag (line 160) | func (h *AlwaysOnInboundHandler) Tag() string { method GetInbound (line 164) | func (h *AlwaysOnInboundHandler) GetInbound() proxy.Inbound { function NewAlwaysOnInboundHandler (line 51) | func NewAlwaysOnInboundHandler(ctx context.Context, tag string, receiver... FILE: app/proxyman/inbound/dynamic.go type DynamicInboundHandler (line 18) | type DynamicInboundHandler struct method allocatePort (line 71) | func (h *DynamicInboundHandler) allocatePort() net.Port { method closeWorkers (line 89) | func (h *DynamicInboundHandler) closeWorkers(workers []worker) { method refresh (line 105) | func (h *DynamicInboundHandler) refresh() error { method Start (line 179) | func (h *DynamicInboundHandler) Start() error { method Close (line 183) | func (h *DynamicInboundHandler) Close() error { method GetRandomInboundProxy (line 187) | func (h *DynamicInboundHandler) GetRandomInboundProxy() (interface{}, ... method Tag (line 199) | func (h *DynamicInboundHandler) Tag() string { function NewDynamicInboundHandler (line 35) | func NewDynamicInboundHandler(ctx context.Context, tag string, receiverC... FILE: app/proxyman/inbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/proxyman/inbound/inbound.go type Manager (line 18) | type Manager struct method Type (line 34) | func (*Manager) Type() interface{} { method AddHandler (line 39) | func (m *Manager) AddHandler(ctx context.Context, handler inbound.Hand... method GetHandler (line 58) | func (m *Manager) GetHandler(ctx context.Context, tag string) (inbound... method RemoveHandler (line 70) | func (m *Manager) RemoveHandler(ctx context.Context, tag string) error { method Start (line 90) | func (m *Manager) Start() error { method Close (line 111) | func (m *Manager) Close() error { function New (line 26) | func New(ctx context.Context, config *proxyman.InboundConfig) (*Manager,... function NewHandler (line 137) | func NewHandler(ctx context.Context, config *core.InboundHandlerConfig) ... function init (line 171) | func init() { FILE: app/proxyman/inbound/worker.go type worker (line 26) | type worker interface type tcpWorker (line 33) | type tcpWorker struct method callback (line 57) | func (w *tcpWorker) callback(conn internet.Connection) { method Proxy (line 108) | func (w *tcpWorker) Proxy() proxy.Inbound { method Start (line 112) | func (w *tcpWorker) Start() error { method Close (line 124) | func (w *tcpWorker) Close() error { method Port (line 141) | func (w *tcpWorker) Port() net.Port { function getTProxyType (line 50) | func getTProxyType(s *internet.MemoryStreamConfig) internet.SocketConfig... type udpConn (line 145) | type udpConn struct method updateActivity (line 157) | func (c *udpConn) updateActivity() { method ReadMultiBuffer (line 162) | func (c *udpConn) ReadMultiBuffer() (buf.MultiBuffer, error) { method Read (line 176) | func (c *udpConn) Read(buf []byte) (int, error) { method Write (line 181) | func (c *udpConn) Write(buf []byte) (int, error) { method Close (line 192) | func (c *udpConn) Close() error { method RemoteAddr (line 198) | func (c *udpConn) RemoteAddr() net.Addr { method LocalAddr (line 202) | func (c *udpConn) LocalAddr() net.Addr { method SetDeadline (line 206) | func (*udpConn) SetDeadline(time.Time) error { method SetReadDeadline (line 210) | func (*udpConn) SetReadDeadline(time.Time) error { method SetWriteDeadline (line 214) | func (*udpConn) SetWriteDeadline(time.Time) error { type connID (line 218) | type connID struct type udpWorker (line 223) | type udpWorker struct method getConnection (line 240) | func (w *udpWorker) getConnection(id connID) (*udpConn, bool) { method callback (line 273) | func (w *udpWorker) callback(b *buf.Buffer, source net.Destination, or... method removeConn (line 312) | func (w *udpWorker) removeConn(id connID) { method handlePackets (line 318) | func (w *udpWorker) handlePackets() { method clean (line 325) | func (w *udpWorker) clean() error { method Start (line 348) | func (w *udpWorker) Start() error { method Close (line 366) | func (w *udpWorker) Close() error { method Port (line 394) | func (w *udpWorker) Port() net.Port { method Proxy (line 398) | func (w *udpWorker) Proxy() proxy.Inbound { FILE: app/proxyman/outbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/proxyman/outbound/handler.go function getStatCounter (line 22) | func getStatCounter(v *core.Instance, tag string) (stats.Counter, stats.... type Handler (line 48) | type Handler struct method Tag (line 128) | func (h *Handler) Tag() string { method Dispatch (line 133) | func (h *Handler) Dispatch(ctx context.Context, link *transport.Link) { method Address (line 152) | func (h *Handler) Address() net.Address { method Dial (line 160) | func (h *Handler) Dial(ctx context.Context, dest net.Destination) (int... method getStatCouterConnection (line 203) | func (h *Handler) getStatCouterConnection(conn internet.Connection) in... method GetOutbound (line 215) | func (h *Handler) GetOutbound() proxy.Outbound { method Start (line 220) | func (h *Handler) Start() error { method Close (line 225) | func (h *Handler) Close() error { function NewHandler (line 60) | func NewHandler(ctx context.Context, config *core.OutboundHandlerConfig)... FILE: app/proxyman/outbound/handler_test.go function TestInterfaces (line 18) | func TestInterfaces(t *testing.T) { constant v2rayKey (line 23) | v2rayKey core.V2rayKey = 1 function TestOutboundWithoutStatCounter (line 25) | func TestOutboundWithoutStatCounter(t *testing.T) { function TestOutboundWithStatCounter (line 53) | func TestOutboundWithStatCounter(t *testing.T) { FILE: app/proxyman/outbound/outbound.go type Manager (line 18) | type Manager struct method Type (line 35) | func (m *Manager) Type() interface{} { method Start (line 40) | func (m *Manager) Start() error { method Close (line 62) | func (m *Manager) Close() error { method GetDefaultHandler (line 81) | func (m *Manager) GetDefaultHandler() outbound.Handler { method GetHandler (line 92) | func (m *Manager) GetHandler(tag string) outbound.Handler { method AddHandler (line 102) | func (m *Manager) AddHandler(ctx context.Context, handler outbound.Han... method RemoveHandler (line 125) | func (m *Manager) RemoveHandler(ctx context.Context, tag string) error { method Select (line 141) | func (m *Manager) Select(selectors []string) []string { function New (line 27) | func New(ctx context.Context, config *proxyman.OutboundConfig) (*Manager... function init (line 163) | func init() { FILE: app/proxyman/proxyman.go function ContextWithSniffingConfig (line 12) | func ContextWithSniffingConfig(ctx context.Context, c *SniffingConfig) c... FILE: app/reverse/bridge.go type Bridge (line 20) | type Bridge struct method cleanup (line 49) | func (b *Bridge) cleanup() { method monitor (line 63) | func (b *Bridge) monitor() error { method Start (line 88) | func (b *Bridge) Start() error { method Close (line 92) | func (b *Bridge) Close() error { function NewBridge (line 29) | func NewBridge(config *BridgeConfig, dispatcher routing.Dispatcher) (*Br... type BridgeWorker (line 96) | type BridgeWorker struct method Type (line 131) | func (w *BridgeWorker) Type() interface{} { method Start (line 135) | func (w *BridgeWorker) Start() error { method Close (line 139) | func (w *BridgeWorker) Close() error { method IsActive (line 143) | func (w *BridgeWorker) IsActive() bool { method Connections (line 147) | func (w *BridgeWorker) Connections() uint32 { method handleInternalConn (line 151) | func (w *BridgeWorker) handleInternalConn(link transport.Link) { method Dispatch (line 173) | func (w *BridgeWorker) Dispatch(ctx context.Context, dest net.Destinat... function NewBridgeWorker (line 103) | func NewBridgeWorker(domain string, tag string, d routing.Dispatcher) (*... FILE: app/reverse/config.go method FillInRandom (line 12) | func (c *Control) FillInRandom() { FILE: app/reverse/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Control_State (line 28) | type Control_State method Enum (line 47) | func (x Control_State) Enum() *Control_State { method String (line 53) | func (x Control_State) String() string { method Descriptor (line 57) | func (Control_State) Descriptor() protoreflect.EnumDescriptor { method Type (line 61) | func (Control_State) Type() protoreflect.EnumType { method Number (line 65) | func (x Control_State) Number() protoreflect.EnumNumber { method EnumDescriptor (line 70) | func (Control_State) EnumDescriptor() ([]byte, []int) { constant Control_ACTIVE (line 31) | Control_ACTIVE Control_State = 0 constant Control_DRAIN (line 32) | Control_DRAIN Control_State = 1 type Control (line 74) | type Control struct method Reset (line 83) | func (x *Control) Reset() { method String (line 92) | func (x *Control) String() string { method ProtoMessage (line 96) | func (*Control) ProtoMessage() {} method ProtoReflect (line 98) | func (x *Control) ProtoReflect() protoreflect.Message { method Descriptor (line 111) | func (*Control) Descriptor() ([]byte, []int) { method GetState (line 115) | func (x *Control) GetState() Control_State { method GetRandom (line 122) | func (x *Control) GetRandom() []byte { type BridgeConfig (line 129) | type BridgeConfig struct method Reset (line 138) | func (x *BridgeConfig) Reset() { method String (line 147) | func (x *BridgeConfig) String() string { method ProtoMessage (line 151) | func (*BridgeConfig) ProtoMessage() {} method ProtoReflect (line 153) | func (x *BridgeConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 166) | func (*BridgeConfig) Descriptor() ([]byte, []int) { method GetTag (line 170) | func (x *BridgeConfig) GetTag() string { method GetDomain (line 177) | func (x *BridgeConfig) GetDomain() string { type PortalConfig (line 184) | type PortalConfig struct method Reset (line 193) | func (x *PortalConfig) Reset() { method String (line 202) | func (x *PortalConfig) String() string { method ProtoMessage (line 206) | func (*PortalConfig) ProtoMessage() {} method ProtoReflect (line 208) | func (x *PortalConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 221) | func (*PortalConfig) Descriptor() ([]byte, []int) { method GetTag (line 225) | func (x *PortalConfig) GetTag() string { method GetDomain (line 232) | func (x *PortalConfig) GetDomain() string { type Config (line 239) | type Config struct method Reset (line 248) | func (x *Config) Reset() { method String (line 257) | func (x *Config) String() string { method ProtoMessage (line 261) | func (*Config) ProtoMessage() {} method ProtoReflect (line 263) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 276) | func (*Config) Descriptor() ([]byte, []int) { method GetBridgeConfig (line 280) | func (x *Config) GetBridgeConfig() []*BridgeConfig { method GetPortalConfig (line 287) | func (x *Config) GetPortalConfig() []*PortalConfig { function file_app_reverse_config_proto_rawDescGZIP (line 339) | func file_app_reverse_config_proto_rawDescGZIP() []byte { function init (line 366) | func init() { file_app_reverse_config_proto_init() } function file_app_reverse_config_proto_init (line 367) | func file_app_reverse_config_proto_init() { FILE: app/reverse/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/reverse/portal.go type Portal (line 22) | type Portal struct method Start (line 55) | func (p *Portal) Start() error { method Close (line 62) | func (p *Portal) Close() error { method HandleConnection (line 66) | func (p *Portal) HandleConnection(ctx context.Context, link *transport... function NewPortal (line 30) | func NewPortal(config *PortalConfig, ohm outbound.Manager) (*Portal, err... type Outbound (line 90) | type Outbound struct method Tag (line 95) | func (o *Outbound) Tag() string { method Dispatch (line 99) | func (o *Outbound) Dispatch(ctx context.Context, link *transport.Link) { method Start (line 106) | func (o *Outbound) Start() error { method Close (line 110) | func (o *Outbound) Close() error { type StaticMuxPicker (line 114) | type StaticMuxPicker struct method cleanup (line 130) | func (p *StaticMuxPicker) cleanup() error { method PickAvailable (line 148) | func (p *StaticMuxPicker) PickAvailable() (*mux.ClientWorker, error) { method AddWorker (line 187) | func (p *StaticMuxPicker) AddWorker(worker *PortalWorker) { function NewStaticMuxPicker (line 120) | func NewStaticMuxPicker() (*StaticMuxPicker, error) { type PortalWorker (line 194) | type PortalWorker struct method heartbeat (line 231) | func (w *PortalWorker) heartbeat() error { method IsFull (line 260) | func (w *PortalWorker) IsFull() bool { method Closed (line 264) | func (w *PortalWorker) Closed() bool { function NewPortalWorker (line 202) | func NewPortalWorker(client *mux.ClientWorker) (*PortalWorker, error) { FILE: app/reverse/portal_test.go function TestStaticPickerEmpty (line 10) | func TestStaticPickerEmpty(t *testing.T) { FILE: app/reverse/reverse.go constant internalDomain (line 19) | internalDomain = "reverse.internal.v2ray.com" function isDomain (line 22) | func isDomain(dest net.Destination, domain string) bool { function isInternalDomain (line 26) | func isInternalDomain(dest net.Destination) bool { function init (line 30) | func init() { type Reverse (line 42) | type Reverse struct method Init (line 47) | func (r *Reverse) Init(config *Config, d routing.Dispatcher, ohm outbo... method Type (line 67) | func (r *Reverse) Type() interface{} { method Start (line 71) | func (r *Reverse) Start() error { method Close (line 87) | func (r *Reverse) Close() error { FILE: app/router/balancing.go type BalancingStrategy (line 10) | type BalancingStrategy interface type RandomStrategy (line 14) | type RandomStrategy struct method PickOutbound (line 17) | func (s *RandomStrategy) PickOutbound(tags []string) string { type Balancer (line 26) | type Balancer struct method PickOutbound (line 32) | func (b *Balancer) PickOutbound() (string, error) { FILE: app/router/command/command.go type routingServer (line 20) | type routingServer struct method TestRoute (line 33) | func (s *routingServer) TestRoute(ctx context.Context, request *TestRo... method SubscribeRoutingStats (line 48) | func (s *routingServer) SubscribeRoutingStats(request *SubscribeRoutin... method mustEmbedUnimplementedRoutingServiceServer (line 78) | func (s *routingServer) mustEmbedUnimplementedRoutingServiceServer() {} function NewRoutingServer (line 26) | func NewRoutingServer(router routing.Router, routingStats stats.Channel)... type service (line 80) | type service struct method Register (line 84) | func (s *service) Register(server *grpc.Server) { function init (line 90) | func init() { FILE: app/router/command/command.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type RoutingContext (line 32) | type RoutingContext struct method Reset (line 51) | func (x *RoutingContext) Reset() { method String (line 60) | func (x *RoutingContext) String() string { method ProtoMessage (line 64) | func (*RoutingContext) ProtoMessage() {} method ProtoReflect (line 66) | func (x *RoutingContext) ProtoReflect() protoreflect.Message { method Descriptor (line 79) | func (*RoutingContext) Descriptor() ([]byte, []int) { method GetInboundTag (line 83) | func (x *RoutingContext) GetInboundTag() string { method GetNetwork (line 90) | func (x *RoutingContext) GetNetwork() net.Network { method GetSourceIPs (line 97) | func (x *RoutingContext) GetSourceIPs() [][]byte { method GetTargetIPs (line 104) | func (x *RoutingContext) GetTargetIPs() [][]byte { method GetSourcePort (line 111) | func (x *RoutingContext) GetSourcePort() uint32 { method GetTargetPort (line 118) | func (x *RoutingContext) GetTargetPort() uint32 { method GetTargetDomain (line 125) | func (x *RoutingContext) GetTargetDomain() string { method GetProtocol (line 132) | func (x *RoutingContext) GetProtocol() string { method GetUser (line 139) | func (x *RoutingContext) GetUser() string { method GetAttributes (line 146) | func (x *RoutingContext) GetAttributes() map[string]string { method GetOutboundGroupTags (line 153) | func (x *RoutingContext) GetOutboundGroupTags() []string { method GetOutboundTag (line 160) | func (x *RoutingContext) GetOutboundTag() string { type SubscribeRoutingStatsRequest (line 184) | type SubscribeRoutingStatsRequest struct method Reset (line 192) | func (x *SubscribeRoutingStatsRequest) Reset() { method String (line 201) | func (x *SubscribeRoutingStatsRequest) String() string { method ProtoMessage (line 205) | func (*SubscribeRoutingStatsRequest) ProtoMessage() {} method ProtoReflect (line 207) | func (x *SubscribeRoutingStatsRequest) ProtoReflect() protoreflect.Mes... method Descriptor (line 220) | func (*SubscribeRoutingStatsRequest) Descriptor() ([]byte, []int) { method GetFieldSelectors (line 224) | func (x *SubscribeRoutingStatsRequest) GetFieldSelectors() []string { type TestRouteRequest (line 238) | type TestRouteRequest struct method Reset (line 248) | func (x *TestRouteRequest) Reset() { method String (line 257) | func (x *TestRouteRequest) String() string { method ProtoMessage (line 261) | func (*TestRouteRequest) ProtoMessage() {} method ProtoReflect (line 263) | func (x *TestRouteRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 276) | func (*TestRouteRequest) Descriptor() ([]byte, []int) { method GetRoutingContext (line 280) | func (x *TestRouteRequest) GetRoutingContext() *RoutingContext { method GetFieldSelectors (line 287) | func (x *TestRouteRequest) GetFieldSelectors() []string { method GetPublishResult (line 294) | func (x *TestRouteRequest) GetPublishResult() bool { type Config (line 301) | type Config struct method Reset (line 307) | func (x *Config) Reset() { method String (line 316) | func (x *Config) String() string { method ProtoMessage (line 320) | func (*Config) ProtoMessage() {} method ProtoReflect (line 322) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 335) | func (*Config) Descriptor() ([]byte, []int) { function file_app_router_command_command_proto_rawDescGZIP (line 430) | func file_app_router_command_command_proto_rawDescGZIP() []byte { function init (line 461) | func init() { file_app_router_command_command_proto_init() } function file_app_router_command_command_proto_init (line 462) | func file_app_router_command_command_proto_init() { FILE: app/router/command/command_grpc.pb.go constant _ (line 14) | _ = grpc.SupportPackageIsVersion7 type RoutingServiceClient (line 19) | type RoutingServiceClient interface type routingServiceClient (line 24) | type routingServiceClient struct method SubscribeRoutingStats (line 32) | func (c *routingServiceClient) SubscribeRoutingStats(ctx context.Conte... method TestRoute (line 64) | func (c *routingServiceClient) TestRoute(ctx context.Context, in *Test... function NewRoutingServiceClient (line 28) | func NewRoutingServiceClient(cc grpc.ClientConnInterface) RoutingService... type RoutingService_SubscribeRoutingStatsClient (line 47) | type RoutingService_SubscribeRoutingStatsClient interface type routingServiceSubscribeRoutingStatsClient (line 52) | type routingServiceSubscribeRoutingStatsClient struct method Recv (line 56) | func (x *routingServiceSubscribeRoutingStatsClient) Recv() (*RoutingCo... type RoutingServiceServer (line 76) | type RoutingServiceServer interface type UnimplementedRoutingServiceServer (line 83) | type UnimplementedRoutingServiceServer struct method SubscribeRoutingStats (line 86) | func (UnimplementedRoutingServiceServer) SubscribeRoutingStats(*Subscr... method TestRoute (line 89) | func (UnimplementedRoutingServiceServer) TestRoute(context.Context, *T... method mustEmbedUnimplementedRoutingServiceServer (line 92) | func (UnimplementedRoutingServiceServer) mustEmbedUnimplementedRouting... type UnsafeRoutingServiceServer (line 97) | type UnsafeRoutingServiceServer interface function RegisterRoutingServiceServer (line 101) | func RegisterRoutingServiceServer(s *grpc.Server, srv RoutingServiceServ... function _RoutingService_SubscribeRoutingStats_Handler (line 105) | func _RoutingService_SubscribeRoutingStats_Handler(srv interface{}, stre... type RoutingService_SubscribeRoutingStatsServer (line 113) | type RoutingService_SubscribeRoutingStatsServer interface type routingServiceSubscribeRoutingStatsServer (line 118) | type routingServiceSubscribeRoutingStatsServer struct method Send (line 122) | func (x *routingServiceSubscribeRoutingStatsServer) Send(m *RoutingCon... function _RoutingService_TestRoute_Handler (line 126) | func _RoutingService_TestRoute_Handler(srv interface{}, ctx context.Cont... FILE: app/router/command/command_test.go function TestServiceSubscribeRoutingStats (line 22) | func TestServiceSubscribeRoutingStats(t *testing.T) { function TestSerivceTestRoute (line 203) | func TestSerivceTestRoute(t *testing.T) { FILE: app/router/command/config.go type routingContext (line 11) | type routingContext struct method GetSourceIPs (line 15) | func (c routingContext) GetSourceIPs() []net.IP { method GetSourcePort (line 19) | func (c routingContext) GetSourcePort() net.Port { method GetTargetIPs (line 23) | func (c routingContext) GetTargetIPs() []net.IP { method GetTargetPort (line 27) | func (c routingContext) GetTargetPort() net.Port { function AsRoutingContext (line 32) | func AsRoutingContext(r *RoutingContext) routing.Context { function AsRoutingRoute (line 37) | func AsRoutingRoute(r *RoutingContext) routing.Route { function AsProtobufMessage (line 57) | func AsProtobufMessage(fieldSelectors []string) func(routing.Route) *Rou... function mapBytesToIPs (line 80) | func mapBytesToIPs(bytes [][]byte) []net.IP { function mapIPsToBytes (line 88) | func mapIPsToBytes(ips []net.IP) [][]byte { FILE: app/router/command/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/router/condition.go type Condition (line 16) | type Condition interface type ConditionChan (line 20) | type ConditionChan method Add (line 27) | func (v *ConditionChan) Add(cond Condition) *ConditionChan { method Apply (line 33) | func (v *ConditionChan) Apply(ctx routing.Context) bool { method Len (line 42) | func (v *ConditionChan) Len() int { function NewConditionChan (line 22) | func NewConditionChan() *ConditionChan { function domainToMatcher (line 53) | func domainToMatcher(domain *Domain) (strmatcher.Matcher, error) { type DomainMatcher (line 67) | type DomainMatcher struct method ApplyDomain (line 86) | func (m *DomainMatcher) ApplyDomain(domain string) bool { method Apply (line 91) | func (m *DomainMatcher) Apply(ctx routing.Context) bool { function NewDomainMatcher (line 71) | func NewDomainMatcher(domains []*Domain) (*DomainMatcher, error) { type MultiGeoIPMatcher (line 99) | type MultiGeoIPMatcher struct method Apply (line 123) | func (m *MultiGeoIPMatcher) Apply(ctx routing.Context) bool { function NewMultiGeoIPMatcher (line 104) | func NewMultiGeoIPMatcher(geoips []*GeoIP, onSource bool) (*MultiGeoIPMa... type PortMatcher (line 140) | type PortMatcher struct method Apply (line 154) | func (v *PortMatcher) Apply(ctx routing.Context) bool { function NewPortMatcher (line 146) | func NewPortMatcher(list *net.PortList, onSource bool) *PortMatcher { type NetworkMatcher (line 162) | type NetworkMatcher struct method Apply (line 175) | func (v NetworkMatcher) Apply(ctx routing.Context) bool { function NewNetworkMatcher (line 166) | func NewNetworkMatcher(network []net.Network) NetworkMatcher { type UserMatcher (line 179) | type UserMatcher struct method Apply (line 196) | func (v *UserMatcher) Apply(ctx routing.Context) bool { function NewUserMatcher (line 183) | func NewUserMatcher(users []string) *UserMatcher { type InboundTagMatcher (line 209) | type InboundTagMatcher struct method Apply (line 226) | func (v *InboundTagMatcher) Apply(ctx routing.Context) bool { function NewInboundTagMatcher (line 213) | func NewInboundTagMatcher(tags []string) *InboundTagMatcher { type ProtocolMatcher (line 239) | type ProtocolMatcher struct method Apply (line 258) | func (m *ProtocolMatcher) Apply(ctx routing.Context) bool { function NewProtocolMatcher (line 243) | func NewProtocolMatcher(protocols []string) *ProtocolMatcher { type AttributeMatcher (line 271) | type AttributeMatcher struct method Match (line 292) | func (m *AttributeMatcher) Match(attrs map[string]string) bool { method Apply (line 313) | func (m *AttributeMatcher) Apply(ctx routing.Context) bool { function NewAttributeMatcher (line 275) | func NewAttributeMatcher(code string) (*AttributeMatcher, error) { FILE: app/router/condition_geoip.go type ipv6 (line 12) | type ipv6 struct type GeoIPMatcher (line 17) | type GeoIPMatcher struct method Init (line 39) | func (m *GeoIPMatcher) Init(cidrs []*CIDR) error { method match4 (line 85) | func (m *GeoIPMatcher) match4(ip uint32) bool { method match6 (line 119) | func (m *GeoIPMatcher) match6(ip ipv6) bool { method Match (line 149) | func (m *GeoIPMatcher) Match(ip net.IP) bool { function normalize4 (line 25) | func normalize4(ip uint32, prefix uint8) uint32 { function normalize6 (line 29) | func normalize6(ip ipv6, prefix uint8) ipv6 { function less6 (line 115) | func less6(a ipv6, b ipv6) bool { type GeoIPMatcherContainer (line 164) | type GeoIPMatcherContainer struct method Add (line 170) | func (c *GeoIPMatcherContainer) Add(geoip *GeoIP) (*GeoIPMatcher, erro... FILE: app/router/condition_geoip_test.go function init (line 16) | func init() { function TestGeoIPMatcherContainer (line 28) | func TestGeoIPMatcherContainer(t *testing.T) { function TestGeoIPMatcher (line 55) | func TestGeoIPMatcher(t *testing.T) { function TestGeoIPMatcher4CN (line 126) | func TestGeoIPMatcher4CN(t *testing.T) { function TestGeoIPMatcher6US (line 138) | func TestGeoIPMatcher6US(t *testing.T) { function loadGeoIP (line 150) | func loadGeoIP(country string) ([]*router.CIDR, error) { function BenchmarkGeoIPMatcher4CN (line 169) | func BenchmarkGeoIPMatcher4CN(b *testing.B) { function BenchmarkGeoIPMatcher6US (line 183) | func BenchmarkGeoIPMatcher6US(b *testing.B) { FILE: app/router/condition_test.go function init (line 24) | func init() { function withBackground (line 36) | func withBackground() routing.Context { function withOutbound (line 40) | func withOutbound(outbound *session.Outbound) routing.Context { function withInbound (line 44) | func withInbound(inbound *session.Inbound) routing.Context { function withContent (line 48) | func withContent(content *session.Content) routing.Context { function TestRoutingRule (line 52) | func TestRoutingRule(t *testing.T) { function loadGeoSite (line 336) | func loadGeoSite(country string) ([]*Domain, error) { function TestChinaSites (line 355) | func TestChinaSites(t *testing.T) { function BenchmarkMultiGeoIPMatcher (line 397) | func BenchmarkMultiGeoIPMatcher(b *testing.B) { FILE: app/router/config.go type CIDRList (line 12) | type CIDRList method Len (line 15) | func (l *CIDRList) Len() int { method Less (line 20) | func (l *CIDRList) Less(i int, j int) bool { method Swap (line 46) | func (l *CIDRList) Swap(i int, j int) { type Rule (line 50) | type Rule struct method GetTag (line 56) | func (r *Rule) GetTag() (string, error) { method Apply (line 64) | func (r *Rule) Apply(ctx routing.Context) bool { method BuildCondition (line 68) | func (rr *RoutingRule) BuildCondition() (Condition, error) { method Build (line 150) | func (br *BalancingRule) Build(ohm outbound.Manager) (*Balancer, error) { FILE: app/router/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Domain_Type (line 30) | type Domain_Type method Enum (line 59) | func (x Domain_Type) Enum() *Domain_Type { method String (line 65) | func (x Domain_Type) String() string { method Descriptor (line 69) | func (Domain_Type) Descriptor() protoreflect.EnumDescriptor { method Type (line 73) | func (Domain_Type) Type() protoreflect.EnumType { method Number (line 77) | func (x Domain_Type) Number() protoreflect.EnumNumber { method EnumDescriptor (line 82) | func (Domain_Type) EnumDescriptor() ([]byte, []int) { constant Domain_Plain (line 34) | Domain_Plain Domain_Type = 0 constant Domain_Regex (line 36) | Domain_Regex Domain_Type = 1 constant Domain_Domain (line 38) | Domain_Domain Domain_Type = 2 constant Domain_Full (line 40) | Domain_Full Domain_Type = 3 type Config_DomainStrategy (line 86) | type Config_DomainStrategy method Enum (line 115) | func (x Config_DomainStrategy) Enum() *Config_DomainStrategy { method String (line 121) | func (x Config_DomainStrategy) String() string { method Descriptor (line 125) | func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor { method Type (line 129) | func (Config_DomainStrategy) Type() protoreflect.EnumType { method Number (line 133) | func (x Config_DomainStrategy) Number() protoreflect.EnumNumber { method EnumDescriptor (line 138) | func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) { constant Config_AsIs (line 90) | Config_AsIs Config_DomainStrategy = 0 constant Config_UseIp (line 92) | Config_UseIp Config_DomainStrategy = 1 constant Config_IpIfNonMatch (line 94) | Config_IpIfNonMatch Config_DomainStrategy = 2 constant Config_IpOnDemand (line 96) | Config_IpOnDemand Config_DomainStrategy = 3 type Domain (line 143) | type Domain struct method Reset (line 156) | func (x *Domain) Reset() { method String (line 165) | func (x *Domain) String() string { method ProtoMessage (line 169) | func (*Domain) ProtoMessage() {} method ProtoReflect (line 171) | func (x *Domain) ProtoReflect() protoreflect.Message { method Descriptor (line 184) | func (*Domain) Descriptor() ([]byte, []int) { method GetType (line 188) | func (x *Domain) GetType() Domain_Type { method GetValue (line 195) | func (x *Domain) GetValue() string { method GetAttribute (line 202) | func (x *Domain) GetAttribute() []*Domain_Attribute { type CIDR (line 210) | type CIDR struct method Reset (line 221) | func (x *CIDR) Reset() { method String (line 230) | func (x *CIDR) String() string { method ProtoMessage (line 234) | func (*CIDR) ProtoMessage() {} method ProtoReflect (line 236) | func (x *CIDR) ProtoReflect() protoreflect.Message { method Descriptor (line 249) | func (*CIDR) Descriptor() ([]byte, []int) { method GetIp (line 253) | func (x *CIDR) GetIp() []byte { method GetPrefix (line 260) | func (x *CIDR) GetPrefix() uint32 { type GeoIP (line 267) | type GeoIP struct method Reset (line 276) | func (x *GeoIP) Reset() { method String (line 285) | func (x *GeoIP) String() string { method ProtoMessage (line 289) | func (*GeoIP) ProtoMessage() {} method ProtoReflect (line 291) | func (x *GeoIP) ProtoReflect() protoreflect.Message { method Descriptor (line 304) | func (*GeoIP) Descriptor() ([]byte, []int) { method GetCountryCode (line 308) | func (x *GeoIP) GetCountryCode() string { method GetCidr (line 315) | func (x *GeoIP) GetCidr() []*CIDR { type GeoIPList (line 322) | type GeoIPList struct method Reset (line 330) | func (x *GeoIPList) Reset() { method String (line 339) | func (x *GeoIPList) String() string { method ProtoMessage (line 343) | func (*GeoIPList) ProtoMessage() {} method ProtoReflect (line 345) | func (x *GeoIPList) ProtoReflect() protoreflect.Message { method Descriptor (line 358) | func (*GeoIPList) Descriptor() ([]byte, []int) { method GetEntry (line 362) | func (x *GeoIPList) GetEntry() []*GeoIP { type GeoSite (line 369) | type GeoSite struct method Reset (line 378) | func (x *GeoSite) Reset() { method String (line 387) | func (x *GeoSite) String() string { method ProtoMessage (line 391) | func (*GeoSite) ProtoMessage() {} method ProtoReflect (line 393) | func (x *GeoSite) ProtoReflect() protoreflect.Message { method Descriptor (line 406) | func (*GeoSite) Descriptor() ([]byte, []int) { method GetCountryCode (line 410) | func (x *GeoSite) GetCountryCode() string { method GetDomain (line 417) | func (x *GeoSite) GetDomain() []*Domain { type GeoSiteList (line 424) | type GeoSiteList struct method Reset (line 432) | func (x *GeoSiteList) Reset() { method String (line 441) | func (x *GeoSiteList) String() string { method ProtoMessage (line 445) | func (*GeoSiteList) ProtoMessage() {} method ProtoReflect (line 447) | func (x *GeoSiteList) ProtoReflect() protoreflect.Message { method Descriptor (line 460) | func (*GeoSiteList) Descriptor() ([]byte, []int) { method GetEntry (line 464) | func (x *GeoSiteList) GetEntry() []*GeoSite { type RoutingRule (line 471) | type RoutingRule struct method Reset (line 520) | func (x *RoutingRule) Reset() { method String (line 529) | func (x *RoutingRule) String() string { method ProtoMessage (line 533) | func (*RoutingRule) ProtoMessage() {} method ProtoReflect (line 535) | func (x *RoutingRule) ProtoReflect() protoreflect.Message { method Descriptor (line 548) | func (*RoutingRule) Descriptor() ([]byte, []int) { method GetTargetTag (line 552) | func (m *RoutingRule) GetTargetTag() isRoutingRule_TargetTag { method GetTag (line 559) | func (x *RoutingRule) GetTag() string { method GetBalancingTag (line 566) | func (x *RoutingRule) GetBalancingTag() string { method GetDomain (line 573) | func (x *RoutingRule) GetDomain() []*Domain { method GetCidr (line 581) | func (x *RoutingRule) GetCidr() []*CIDR { method GetGeoip (line 588) | func (x *RoutingRule) GetGeoip() []*GeoIP { method GetPortRange (line 596) | func (x *RoutingRule) GetPortRange() *net.PortRange { method GetPortList (line 603) | func (x *RoutingRule) GetPortList() *net.PortList { method GetNetworkList (line 611) | func (x *RoutingRule) GetNetworkList() *net.NetworkList { method GetNetworks (line 618) | func (x *RoutingRule) GetNetworks() []net.Network { method GetSourceCidr (line 626) | func (x *RoutingRule) GetSourceCidr() []*CIDR { method GetSourceGeoip (line 633) | func (x *RoutingRule) GetSourceGeoip() []*GeoIP { method GetSourcePortList (line 640) | func (x *RoutingRule) GetSourcePortList() *net.PortList { method GetUserEmail (line 647) | func (x *RoutingRule) GetUserEmail() []string { method GetInboundTag (line 654) | func (x *RoutingRule) GetInboundTag() []string { method GetProtocol (line 661) | func (x *RoutingRule) GetProtocol() []string { method GetAttributes (line 668) | func (x *RoutingRule) GetAttributes() string { type isRoutingRule_TargetTag (line 675) | type isRoutingRule_TargetTag interface type RoutingRule_Tag (line 679) | type RoutingRule_Tag struct method isRoutingRule_TargetTag (line 689) | func (*RoutingRule_Tag) isRoutingRule_TargetTag() {} type RoutingRule_BalancingTag (line 684) | type RoutingRule_BalancingTag struct method isRoutingRule_TargetTag (line 691) | func (*RoutingRule_BalancingTag) isRoutingRule_TargetTag() {} type BalancingRule (line 693) | type BalancingRule struct method Reset (line 702) | func (x *BalancingRule) Reset() { method String (line 711) | func (x *BalancingRule) String() string { method ProtoMessage (line 715) | func (*BalancingRule) ProtoMessage() {} method ProtoReflect (line 717) | func (x *BalancingRule) ProtoReflect() protoreflect.Message { method Descriptor (line 730) | func (*BalancingRule) Descriptor() ([]byte, []int) { method GetTag (line 734) | func (x *BalancingRule) GetTag() string { method GetOutboundSelector (line 741) | func (x *BalancingRule) GetOutboundSelector() []string { type Config (line 748) | type Config struct method Reset (line 758) | func (x *Config) Reset() { method String (line 767) | func (x *Config) String() string { method ProtoMessage (line 771) | func (*Config) ProtoMessage() {} method ProtoReflect (line 773) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 786) | func (*Config) Descriptor() ([]byte, []int) { method GetDomainStrategy (line 790) | func (x *Config) GetDomainStrategy() Config_DomainStrategy { method GetRule (line 797) | func (x *Config) GetRule() []*RoutingRule { method GetBalancingRule (line 804) | func (x *Config) GetBalancingRule() []*BalancingRule { type Domain_Attribute (line 811) | type Domain_Attribute struct method Reset (line 823) | func (x *Domain_Attribute) Reset() { method String (line 832) | func (x *Domain_Attribute) String() string { method ProtoMessage (line 836) | func (*Domain_Attribute) ProtoMessage() {} method ProtoReflect (line 838) | func (x *Domain_Attribute) ProtoReflect() protoreflect.Message { method Descriptor (line 851) | func (*Domain_Attribute) Descriptor() ([]byte, []int) { method GetKey (line 855) | func (x *Domain_Attribute) GetKey() string { method GetTypedValue (line 862) | func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedVal... method GetBoolValue (line 869) | func (x *Domain_Attribute) GetBoolValue() bool { method GetIntValue (line 876) | func (x *Domain_Attribute) GetIntValue() int64 { type isDomain_Attribute_TypedValue (line 883) | type isDomain_Attribute_TypedValue interface type Domain_Attribute_BoolValue (line 887) | type Domain_Attribute_BoolValue struct method isDomain_Attribute_TypedValue (line 895) | func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {} type Domain_Attribute_IntValue (line 891) | type Domain_Attribute_IntValue struct method isDomain_Attribute_TypedValue (line 897) | func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {} function file_app_router_config_proto_rawDescGZIP (line 1042) | func file_app_router_config_proto_rawDescGZIP() []byte { function init (line 1096) | func init() { file_app_router_config_proto_init() } function file_app_router_config_proto_init (line 1097) | func file_app_router_config_proto_init() { FILE: app/router/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/router/router.go type Router (line 19) | type Router struct method Init (line 34) | func (r *Router) Init(config *Config, d dns.Client, ohm outbound.Manag... method PickRoute (line 72) | func (r *Router) PickRoute(ctx routing.Context) (routing.Route, error) { method pickRouteInternal (line 84) | func (r *Router) pickRouteInternal(ctx routing.Context) (*Rule, routin... method Start (line 112) | func (*Router) Start() error { method Close (line 117) | func (*Router) Close() error { method Type (line 122) | func (*Router) Type() interface{} { type Route (line 27) | type Route struct method GetOutboundGroupTags (line 127) | func (r *Route) GetOutboundGroupTags() []string { method GetOutboundTag (line 132) | func (r *Route) GetOutboundTag() string { function init (line 136) | func init() { FILE: app/router/router_test.go type mockOutboundManager (line 17) | type mockOutboundManager struct function TestSimpleRouter (line 22) | func TestSimpleRouter(t *testing.T) { function TestSimpleBalancer (line 55) | func TestSimpleBalancer(t *testing.T) { function TestIPOnDemand (line 96) | func TestIPOnDemand(t *testing.T) { function TestIPIfNonMatchDomain (line 131) | func TestIPIfNonMatchDomain(t *testing.T) { function TestIPIfNonMatchIP (line 166) | func TestIPIfNonMatchIP(t *testing.T) { FILE: app/stats/channel.go type Channel (line 13) | type Channel struct method Subscribers (line 38) | func (c *Channel) Subscribers() []chan interface{} { method Subscribe (line 45) | func (c *Channel) Subscribe() (chan interface{}, error) { method Unsubscribe (line 57) | func (c *Channel) Unsubscribe(subscriber chan interface{}) error { method Publish (line 73) | func (c *Channel) Publish(ctx context.Context, msg interface{}) { method Running (line 88) | func (c *Channel) Running() bool { method Start (line 100) | func (c *Channel) Start() error { method Close (line 130) | func (c *Channel) Close() error { function NewChannel (line 28) | func NewChannel(config *ChannelConfig) *Channel { type channelMessage (line 141) | type channelMessage struct method publish (line 146) | func (c channelMessage) publish(publisher chan channelMessage) { method publishNonBlocking (line 153) | func (c channelMessage) publishNonBlocking(publisher chan channelMessa... method broadcast (line 161) | func (c channelMessage) broadcast(subscriber chan interface{}) { method broadcastNonBlocking (line 168) | func (c channelMessage) broadcastNonBlocking(subscriber chan interface... FILE: app/stats/channel_test.go function TestStatsChannel (line 14) | func TestStatsChannel(t *testing.T) { function TestStatsChannelUnsubcribe (line 98) | func TestStatsChannelUnsubcribe(t *testing.T) { function TestStatsChannelBlocking (line 188) | func TestStatsChannelBlocking(t *testing.T) { function TestStatsChannelNonBlocking (line 262) | func TestStatsChannelNonBlocking(t *testing.T) { function TestStatsChannelConcurrency (line 338) | func TestStatsChannelConcurrency(t *testing.T) { FILE: app/stats/command/command.go type statsServer (line 22) | type statsServer struct method GetStats (line 34) | func (s *statsServer) GetStats(ctx context.Context, request *GetStatsR... method QueryStats (line 53) | func (s *statsServer) QueryStats(ctx context.Context, request *QuerySt... method GetSysStats (line 85) | func (s *statsServer) GetSysStats(ctx context.Context, request *SysSta... method mustEmbedUnimplementedStatsServiceServer (line 107) | func (s *statsServer) mustEmbedUnimplementedStatsServiceServer() {} function NewStatsServer (line 27) | func NewStatsServer(manager feature_stats.Manager) StatsServiceServer { type service (line 109) | type service struct method Register (line 113) | func (s *service) Register(server *grpc.Server) { function init (line 117) | func init() { FILE: app/stats/command/command.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type GetStatsRequest (line 28) | type GetStatsRequest struct method Reset (line 39) | func (x *GetStatsRequest) Reset() { method String (line 48) | func (x *GetStatsRequest) String() string { method ProtoMessage (line 52) | func (*GetStatsRequest) ProtoMessage() {} method ProtoReflect (line 54) | func (x *GetStatsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*GetStatsRequest) Descriptor() ([]byte, []int) { method GetName (line 71) | func (x *GetStatsRequest) GetName() string { method GetReset_ (line 78) | func (x *GetStatsRequest) GetReset_() bool { type Stat (line 85) | type Stat struct method Reset (line 94) | func (x *Stat) Reset() { method String (line 103) | func (x *Stat) String() string { method ProtoMessage (line 107) | func (*Stat) ProtoMessage() {} method ProtoReflect (line 109) | func (x *Stat) ProtoReflect() protoreflect.Message { method Descriptor (line 122) | func (*Stat) Descriptor() ([]byte, []int) { method GetName (line 126) | func (x *Stat) GetName() string { method GetValue (line 133) | func (x *Stat) GetValue() int64 { type GetStatsResponse (line 140) | type GetStatsResponse struct method Reset (line 148) | func (x *GetStatsResponse) Reset() { method String (line 157) | func (x *GetStatsResponse) String() string { method ProtoMessage (line 161) | func (*GetStatsResponse) ProtoMessage() {} method ProtoReflect (line 163) | func (x *GetStatsResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 176) | func (*GetStatsResponse) Descriptor() ([]byte, []int) { method GetStat (line 180) | func (x *GetStatsResponse) GetStat() *Stat { type QueryStatsRequest (line 187) | type QueryStatsRequest struct method Reset (line 196) | func (x *QueryStatsRequest) Reset() { method String (line 205) | func (x *QueryStatsRequest) String() string { method ProtoMessage (line 209) | func (*QueryStatsRequest) ProtoMessage() {} method ProtoReflect (line 211) | func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 224) | func (*QueryStatsRequest) Descriptor() ([]byte, []int) { method GetPattern (line 228) | func (x *QueryStatsRequest) GetPattern() string { method GetReset_ (line 235) | func (x *QueryStatsRequest) GetReset_() bool { type QueryStatsResponse (line 242) | type QueryStatsResponse struct method Reset (line 250) | func (x *QueryStatsResponse) Reset() { method String (line 259) | func (x *QueryStatsResponse) String() string { method ProtoMessage (line 263) | func (*QueryStatsResponse) ProtoMessage() {} method ProtoReflect (line 265) | func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 278) | func (*QueryStatsResponse) Descriptor() ([]byte, []int) { method GetStat (line 282) | func (x *QueryStatsResponse) GetStat() []*Stat { type SysStatsRequest (line 289) | type SysStatsRequest struct method Reset (line 295) | func (x *SysStatsRequest) Reset() { method String (line 304) | func (x *SysStatsRequest) String() string { method ProtoMessage (line 308) | func (*SysStatsRequest) ProtoMessage() {} method ProtoReflect (line 310) | func (x *SysStatsRequest) ProtoReflect() protoreflect.Message { method Descriptor (line 323) | func (*SysStatsRequest) Descriptor() ([]byte, []int) { type SysStatsResponse (line 327) | type SysStatsResponse struct method Reset (line 344) | func (x *SysStatsResponse) Reset() { method String (line 353) | func (x *SysStatsResponse) String() string { method ProtoMessage (line 357) | func (*SysStatsResponse) ProtoMessage() {} method ProtoReflect (line 359) | func (x *SysStatsResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 372) | func (*SysStatsResponse) Descriptor() ([]byte, []int) { method GetNumGoroutine (line 376) | func (x *SysStatsResponse) GetNumGoroutine() uint32 { method GetNumGC (line 383) | func (x *SysStatsResponse) GetNumGC() uint32 { method GetAlloc (line 390) | func (x *SysStatsResponse) GetAlloc() uint64 { method GetTotalAlloc (line 397) | func (x *SysStatsResponse) GetTotalAlloc() uint64 { method GetSys (line 404) | func (x *SysStatsResponse) GetSys() uint64 { method GetMallocs (line 411) | func (x *SysStatsResponse) GetMallocs() uint64 { method GetFrees (line 418) | func (x *SysStatsResponse) GetFrees() uint64 { method GetLiveObjects (line 425) | func (x *SysStatsResponse) GetLiveObjects() uint64 { method GetPauseTotalNs (line 432) | func (x *SysStatsResponse) GetPauseTotalNs() uint64 { method GetUptime (line 439) | func (x *SysStatsResponse) GetUptime() uint32 { type Config (line 446) | type Config struct method Reset (line 452) | func (x *Config) Reset() { method String (line 461) | func (x *Config) String() string { method ProtoMessage (line 465) | func (*Config) ProtoMessage() {} method ProtoReflect (line 467) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 480) | func (*Config) Descriptor() ([]byte, []int) { function file_app_stats_command_command_proto_rawDescGZIP (line 568) | func file_app_stats_command_command_proto_rawDescGZIP() []byte { function init (line 602) | func init() { file_app_stats_command_command_proto_init() } function file_app_stats_command_command_proto_init (line 603) | func file_app_stats_command_command_proto_init() { FILE: app/stats/command/command_grpc.pb.go constant _ (line 14) | _ = grpc.SupportPackageIsVersion7 type StatsServiceClient (line 19) | type StatsServiceClient interface type statsServiceClient (line 25) | type statsServiceClient struct method GetStats (line 33) | func (c *statsServiceClient) GetStats(ctx context.Context, in *GetStat... method QueryStats (line 42) | func (c *statsServiceClient) QueryStats(ctx context.Context, in *Query... method GetSysStats (line 51) | func (c *statsServiceClient) GetSysStats(ctx context.Context, in *SysS... function NewStatsServiceClient (line 29) | func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClie... type StatsServiceServer (line 63) | type StatsServiceServer interface type UnimplementedStatsServiceServer (line 71) | type UnimplementedStatsServiceServer struct method GetStats (line 74) | func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetS... method QueryStats (line 77) | func (UnimplementedStatsServiceServer) QueryStats(context.Context, *Qu... method GetSysStats (line 80) | func (UnimplementedStatsServiceServer) GetSysStats(context.Context, *S... method mustEmbedUnimplementedStatsServiceServer (line 83) | func (UnimplementedStatsServiceServer) mustEmbedUnimplementedStatsServ... type UnsafeStatsServiceServer (line 88) | type UnsafeStatsServiceServer interface function RegisterStatsServiceServer (line 92) | func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer) { function _StatsService_GetStats_Handler (line 96) | func _StatsService_GetStats_Handler(srv interface{}, ctx context.Context... function _StatsService_QueryStats_Handler (line 114) | func _StatsService_QueryStats_Handler(srv interface{}, ctx context.Conte... function _StatsService_GetSysStats_Handler (line 132) | func _StatsService_GetSysStats_Handler(srv interface{}, ctx context.Cont... FILE: app/stats/command/command_test.go function TestGetStats (line 15) | func TestGetStats(t *testing.T) { function TestQueryStats (line 64) | func TestQueryStats(t *testing.T) { FILE: app/stats/command/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/stats/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 34) | func (x *Config) Reset() { method String (line 43) | func (x *Config) String() string { method ProtoMessage (line 47) | func (*Config) ProtoMessage() {} method ProtoReflect (line 49) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*Config) Descriptor() ([]byte, []int) { type ChannelConfig (line 66) | type ChannelConfig struct method Reset (line 76) | func (x *ChannelConfig) Reset() { method String (line 85) | func (x *ChannelConfig) String() string { method ProtoMessage (line 89) | func (*ChannelConfig) ProtoMessage() {} method ProtoReflect (line 91) | func (x *ChannelConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 104) | func (*ChannelConfig) Descriptor() ([]byte, []int) { method GetBlocking (line 108) | func (x *ChannelConfig) GetBlocking() bool { method GetSubscriberLimit (line 115) | func (x *ChannelConfig) GetSubscriberLimit() int32 { method GetBufferSize (line 122) | func (x *ChannelConfig) GetBufferSize() int32 { function file_app_stats_config_proto_rawDescGZIP (line 156) | func file_app_stats_config_proto_rawDescGZIP() []byte { function init (line 176) | func init() { file_app_stats_config_proto_init() } function file_app_stats_config_proto_init (line 177) | func file_app_stats_config_proto_init() { FILE: app/stats/counter.go type Counter (line 8) | type Counter struct method Value (line 13) | func (c *Counter) Value() int64 { method Set (line 18) | func (c *Counter) Set(newValue int64) int64 { method Add (line 23) | func (c *Counter) Add(delta int64) int64 { FILE: app/stats/counter_test.go function TestStatsCounter (line 12) | func TestStatsCounter(t *testing.T) { FILE: app/stats/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: app/stats/stats.go type Manager (line 17) | type Manager struct method Type (line 35) | func (*Manager) Type() interface{} { method RegisterCounter (line 40) | func (m *Manager) RegisterCounter(name string) (stats.Counter, error) { method UnregisterCounter (line 54) | func (m *Manager) UnregisterCounter(name string) error { method GetCounter (line 66) | func (m *Manager) GetCounter(name string) stats.Counter { method VisitCounters (line 77) | func (m *Manager) VisitCounters(visitor func(string, stats.Counter) bo... method RegisterChannel (line 89) | func (m *Manager) RegisterChannel(name string) (stats.Channel, error) { method UnregisterChannel (line 106) | func (m *Manager) UnregisterChannel(name string) error { method GetChannel (line 119) | func (m *Manager) GetChannel(name string) stats.Channel { method Start (line 130) | func (m *Manager) Start() error { method Close (line 147) | func (m *Manager) Close() error { function NewManager (line 25) | func NewManager(ctx context.Context, config *Config) (*Manager, error) { function init (line 165) | func init() { FILE: app/stats/stats_test.go function TestInterface (line 13) | func TestInterface(t *testing.T) { function TestStatsChannelRunnable (line 17) | func TestStatsChannelRunnable(t *testing.T) { FILE: common/antireplay/antireplay.go function NewAntiReplayWindow (line 9) | func NewAntiReplayWindow(AntiReplayTime int64) *AntiReplayWindow { type AntiReplayWindow (line 15) | type AntiReplayWindow struct method Check (line 24) | func (aw *AntiReplayWindow) Check(sum []byte) bool { FILE: common/bitmask/byte.go type Byte (line 4) | type Byte method Has (line 7) | func (b Byte) Has(bb Byte) bool { method Set (line 11) | func (b *Byte) Set(bb Byte) { method Clear (line 15) | func (b *Byte) Clear(bb Byte) { method Toggle (line 19) | func (b *Byte) Toggle(bb Byte) { FILE: common/bitmask/byte_test.go function TestBitmaskByte (line 9) | func TestBitmaskByte(t *testing.T) { FILE: common/buf/buffer.go constant Size (line 11) | Size = 2048 type Buffer (line 17) | type Buffer struct method Release (line 24) | func (b *Buffer) Release() { method Clear (line 37) | func (b *Buffer) Clear() { method Byte (line 43) | func (b *Buffer) Byte(index int32) byte { method SetByte (line 48) | func (b *Buffer) SetByte(index int32, value byte) { method Bytes (line 53) | func (b *Buffer) Bytes() []byte { method Extend (line 59) | func (b *Buffer) Extend(n int32) []byte { method BytesRange (line 70) | func (b *Buffer) BytesRange(from, to int32) []byte { method BytesFrom (line 81) | func (b *Buffer) BytesFrom(from int32) []byte { method BytesTo (line 89) | func (b *Buffer) BytesTo(to int32) []byte { method Resize (line 97) | func (b *Buffer) Resize(from, to int32) { method Advance (line 112) | func (b *Buffer) Advance(from int32) { method Len (line 120) | func (b *Buffer) Len() int32 { method IsEmpty (line 128) | func (b *Buffer) IsEmpty() bool { method IsFull (line 133) | func (b *Buffer) IsFull() bool { method Write (line 138) | func (b *Buffer) Write(data []byte) (int, error) { method WriteByte (line 145) | func (b *Buffer) WriteByte(v byte) error { method WriteString (line 155) | func (b *Buffer) WriteString(s string) (int, error) { method Read (line 160) | func (b *Buffer) Read(data []byte) (int, error) { method ReadFrom (line 174) | func (b *Buffer) ReadFrom(reader io.Reader) (int64, error) { method ReadFullFrom (line 181) | func (b *Buffer) ReadFullFrom(reader io.Reader, size int32) (int64, er... method String (line 193) | func (b *Buffer) String() string { function New (line 200) | func New() *Buffer { function StackNew (line 208) | func StackNew() Buffer { FILE: common/buf/buffer_test.go function TestBufferClear (line 13) | func TestBufferClear(t *testing.T) { function TestBufferIsEmpty (line 29) | func TestBufferIsEmpty(t *testing.T) { function TestBufferString (line 38) | func TestBufferString(t *testing.T) { function TestBufferByte (line 49) | func TestBufferByte(t *testing.T) { function TestBufferResize (line 80) | func TestBufferResize(t *testing.T) { function TestBufferSlice (line 105) | func TestBufferSlice(t *testing.T) { function TestBufferReadFullFrom (line 134) | func TestBufferReadFullFrom(t *testing.T) { function BenchmarkNewBuffer (line 151) | func BenchmarkNewBuffer(b *testing.B) { function BenchmarkNewBufferStack (line 158) | func BenchmarkNewBufferStack(b *testing.B) { function BenchmarkWrite2 (line 165) | func BenchmarkWrite2(b *testing.B) { function BenchmarkWrite8 (line 175) | func BenchmarkWrite8(b *testing.B) { function BenchmarkWrite32 (line 185) | func BenchmarkWrite32(b *testing.B) { function BenchmarkWriteByte2 (line 197) | func BenchmarkWriteByte2(b *testing.B) { function BenchmarkWriteByte8 (line 208) | func BenchmarkWriteByte8(b *testing.B) { FILE: common/buf/copy.go type dataHandler (line 11) | type dataHandler type copyHandler (line 13) | type copyHandler struct type SizeCounter (line 18) | type SizeCounter struct type CopyOption (line 23) | type CopyOption function UpdateActivity (line 26) | func UpdateActivity(timer signal.ActivityUpdater) CopyOption { function CountSize (line 35) | func CountSize(sc *SizeCounter) CopyOption { type readError (line 43) | type readError struct method Error (line 47) | func (e readError) Error() string { method Inner (line 51) | func (e readError) Inner() error { function IsReadError (line 56) | func IsReadError(err error) bool { type writeError (line 61) | type writeError struct method Error (line 65) | func (e writeError) Error() string { method Inner (line 69) | func (e writeError) Inner() error { function IsWriteError (line 74) | func IsWriteError(err error) bool { function copyInternal (line 79) | func copyInternal(reader Reader, writer Writer, handler *copyHandler) er... function Copy (line 99) | func Copy(reader Reader, writer Writer, options ...CopyOption) error { function CopyOnceTimeout (line 113) | func CopyOnceTimeout(reader Reader, writer Writer, timeout time.Duration... FILE: common/buf/copy_test.go function TestReadError (line 15) | func TestReadError(t *testing.T) { function TestWriteError (line 36) | func TestWriteError(t *testing.T) { type TestReader (line 57) | type TestReader struct method Read (line 59) | func (TestReader) Read(b []byte) (int, error) { function BenchmarkCopy (line 63) | func BenchmarkCopy(b *testing.B) { FILE: common/buf/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/buf/io.go type Reader (line 12) | type Reader interface type TimeoutReader (line 21) | type TimeoutReader interface type Writer (line 26) | type Writer interface function WriteAllBytes (line 32) | func WriteAllBytes(writer io.Writer, payload []byte) error { function isPacketReader (line 43) | func isPacketReader(reader io.Reader) bool { function NewReader (line 50) | func NewReader(reader io.Reader) Reader { function NewPacketReader (line 79) | func NewPacketReader(reader io.Reader) Reader { function isPacketWriter (line 89) | func isPacketWriter(writer io.Writer) bool { function NewWriter (line 102) | func NewWriter(writer io.Writer) Writer { FILE: common/buf/io_test.go function TestWriterCreation (line 13) | func TestWriterCreation(t *testing.T) { FILE: common/buf/multi_buffer.go function ReadAllToBytes (line 12) | func ReadAllToBytes(reader io.Reader) ([]byte, error) { type MultiBuffer (line 27) | type MultiBuffer method Copy (line 66) | func (mb MultiBuffer) Copy(b []byte) int { method Len (line 226) | func (mb MultiBuffer) Len() int32 { method IsEmpty (line 239) | func (mb MultiBuffer) IsEmpty() bool { method String (line 249) | func (mb MultiBuffer) String() string { function MergeMulti (line 30) | func MergeMulti(dest MultiBuffer, src MultiBuffer) (MultiBuffer, MultiBu... function MergeBytes (line 39) | func MergeBytes(dest MultiBuffer, src []byte) MultiBuffer { function ReleaseMulti (line 57) | func ReleaseMulti(mb MultiBuffer) MultiBuffer { function ReadFrom (line 79) | func ReadFrom(reader io.Reader) (MultiBuffer, error) { function SplitBytes (line 100) | func SplitBytes(mb MultiBuffer, b []byte) (MultiBuffer, int) { function SplitFirstBytes (line 126) | func SplitFirstBytes(mb MultiBuffer, p []byte) (MultiBuffer, int) { function Compact (line 137) | func Compact(mb MultiBuffer) MultiBuffer { function SplitFirst (line 161) | func SplitFirst(mb MultiBuffer) (MultiBuffer, *Buffer) { function SplitSize (line 173) | func SplitSize(mb MultiBuffer, size int32) (MultiBuffer, MultiBuffer) { function WriteMultiBuffer (line 207) | func WriteMultiBuffer(writer io.Writer, mb MultiBuffer) (MultiBuffer, er... type MultiBufferContainer (line 258) | type MultiBufferContainer struct method Read (line 263) | func (c *MultiBufferContainer) Read(b []byte) (int, error) { method ReadMultiBuffer (line 274) | func (c *MultiBufferContainer) ReadMultiBuffer() (MultiBuffer, error) { method Write (line 281) | func (c *MultiBufferContainer) Write(b []byte) (int, error) { method WriteMultiBuffer (line 287) | func (c *MultiBufferContainer) WriteMultiBuffer(b MultiBuffer) error { method Close (line 294) | func (c *MultiBufferContainer) Close() error { FILE: common/buf/multi_buffer_test.go function TestMultiBufferRead (line 17) | func TestMultiBufferRead(t *testing.T) { function TestMultiBufferAppend (line 35) | func TestMultiBufferAppend(t *testing.T) { function TestMultiBufferSliceBySizeLarge (line 45) | func TestMultiBufferSliceBySizeLarge(t *testing.T) { function TestMultiBufferSplitFirst (line 69) | func TestMultiBufferSplitFirst(t *testing.T) { function TestMultiBufferReadAllToByte (line 102) | func TestMultiBufferReadAllToByte(t *testing.T) { function TestMultiBufferCopy (line 133) | func TestMultiBufferCopy(t *testing.T) { function TestSplitFirstBytes (line 149) | func TestSplitFirstBytes(t *testing.T) { function TestCompact (line 167) | func TestCompact(t *testing.T) { function BenchmarkSplitBytes (line 181) | func BenchmarkSplitBytes(b *testing.B) { FILE: common/buf/reader.go function readOneUDP (line 10) | func readOneUDP(r io.Reader) (*Buffer, error) { function ReadBuffer (line 28) | func ReadBuffer(r io.Reader) (*Buffer, error) { type BufferedReader (line 39) | type BufferedReader struct method BufferedBytes (line 49) | func (r *BufferedReader) BufferedBytes() int32 { method ReadByte (line 54) | func (r *BufferedReader) ReadByte() (byte, error) { method Read (line 61) | func (r *BufferedReader) Read(b []byte) (int, error) { method ReadMultiBuffer (line 89) | func (r *BufferedReader) ReadMultiBuffer() (MultiBuffer, error) { method ReadAtMost (line 100) | func (r *BufferedReader) ReadAtMost(size int32) (MultiBuffer, error) { method writeToInternal (line 117) | func (r *BufferedReader) writeToInternal(writer io.Writer) (int64, err... method WriteTo (line 133) | func (r *BufferedReader) WriteTo(writer io.Writer) (int64, error) { method Interrupt (line 142) | func (r *BufferedReader) Interrupt() { method Close (line 147) | func (r *BufferedReader) Close() error { type SingleReader (line 152) | type SingleReader struct method ReadMultiBuffer (line 157) | func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) { type PacketReader (line 163) | type PacketReader struct method ReadMultiBuffer (line 168) | func (r *PacketReader) ReadMultiBuffer() (MultiBuffer, error) { FILE: common/buf/reader_test.go function TestBytesReaderWriteTo (line 14) | func TestBytesReaderWriteTo(t *testing.T) { function TestBytesReaderMultiBuffer (line 41) | func TestBytesReaderMultiBuffer(t *testing.T) { function TestReadByte (line 59) | func TestReadByte(t *testing.T) { function TestReadBuffer (line 80) | func TestReadBuffer(t *testing.T) { function TestReadAtMost (line 94) | func TestReadAtMost(t *testing.T) { function TestPacketReader_ReadMultiBuffer (line 113) | func TestPacketReader_ReadMultiBuffer(t *testing.T) { function TestReaderInterface (line 124) | func TestReaderInterface(t *testing.T) { FILE: common/buf/readv_posix.go type posixReader (line 12) | type posixReader struct method Init (line 16) | func (r *posixReader) Init(bs []*Buffer) { method Read (line 30) | func (r *posixReader) Read(fd uintptr) int32 { method Clear (line 38) | func (r *posixReader) Clear() { function newMultiReader (line 45) | func newMultiReader() multiReader { FILE: common/buf/readv_reader.go type allocStrategy (line 13) | type allocStrategy struct method Current (line 17) | func (s *allocStrategy) Current() uint32 { method Adjust (line 21) | func (s *allocStrategy) Adjust(n uint32) { method Alloc (line 37) | func (s *allocStrategy) Alloc() []*Buffer { type multiReader (line 45) | type multiReader interface type ReadVReader (line 52) | type ReadVReader struct method readMulti (line 71) | func (r *ReadVReader) readMulti() (MultiBuffer, error) { method ReadMultiBuffer (line 120) | func (r *ReadVReader) ReadMultiBuffer() (MultiBuffer, error) { function NewReadVReader (line 60) | func NewReadVReader(reader io.Reader, rawConn syscall.RawConn) *ReadVRea... function init (line 139) | func init() { FILE: common/buf/readv_reader_wasm.go constant useReadv (line 10) | useReadv = false function NewReadVReader (line 12) | func NewReadVReader(reader io.Reader, rawConn syscall.RawConn) Reader { FILE: common/buf/readv_test.go function TestReadvReader (line 18) | func TestReadvReader(t *testing.T) { FILE: common/buf/readv_unix.go type unixReader (line 7) | type unixReader struct method Init (line 11) | func (r *unixReader) Init(bs []*Buffer) { method Read (line 22) | func (r *unixReader) Read(fd uintptr) int32 { method Clear (line 30) | func (r *unixReader) Clear() { function newMultiReader (line 34) | func newMultiReader() multiReader { FILE: common/buf/readv_windows.go type windowsReader (line 7) | type windowsReader struct method Init (line 11) | func (r *windowsReader) Init(bs []*Buffer) { method Clear (line 20) | func (r *windowsReader) Clear() { method Read (line 27) | func (r *windowsReader) Read(fd uintptr) int32 { function newMultiReader (line 37) | func newMultiReader() multiReader { FILE: common/buf/writer.go type BufferToBytesWriter (line 13) | type BufferToBytesWriter struct method WriteMultiBuffer (line 20) | func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error { method ReadFrom (line 61) | func (w *BufferToBytesWriter) ReadFrom(reader io.Reader) (int64, error) { type BufferedWriter (line 68) | type BufferedWriter struct method WriteByte (line 85) | func (w *BufferedWriter) WriteByte(c byte) error { method Write (line 90) | func (w *BufferedWriter) Write(b []byte) (int, error) { method WriteMultiBuffer (line 127) | func (w *BufferedWriter) WriteMultiBuffer(b MultiBuffer) error { method Flush (line 160) | func (w *BufferedWriter) Flush() error { method flushInternal (line 167) | func (w *BufferedWriter) flushInternal() error { method SetBuffered (line 185) | func (w *BufferedWriter) SetBuffered(f bool) error { method ReadFrom (line 197) | func (w *BufferedWriter) ReadFrom(reader io.Reader) (int64, error) { method Close (line 208) | func (w *BufferedWriter) Close() error { function NewBufferedWriter (line 76) | func NewBufferedWriter(writer Writer) *BufferedWriter { type SequentialWriter (line 216) | type SequentialWriter struct method WriteMultiBuffer (line 221) | func (w *SequentialWriter) WriteMultiBuffer(mb MultiBuffer) error { type noOpWriter (line 227) | type noOpWriter method WriteMultiBuffer (line 229) | func (noOpWriter) WriteMultiBuffer(b MultiBuffer) error { method Write (line 234) | func (noOpWriter) Write(b []byte) (int, error) { method ReadFrom (line 238) | func (noOpWriter) ReadFrom(reader io.Reader) (int64, error) { FILE: common/buf/writer_test.go function TestWriter (line 17) | func TestWriter(t *testing.T) { function TestBytesWriterReadFrom (line 35) | func TestBytesWriterReadFrom(t *testing.T) { function TestDiscardBytes (line 56) | func TestDiscardBytes(t *testing.T) { function TestDiscardBytesMultiBuffer (line 67) | func TestDiscardBytesMultiBuffer(t *testing.T) { function TestWriterInterface (line 80) | func TestWriterInterface(t *testing.T) { FILE: common/bytespool/pool.go function createAllocFunc (line 5) | func createAllocFunc(size int32) func() interface{} { constant numPools (line 16) | numPools = 4 constant sizeMulti (line 17) | sizeMulti = 4 function init (line 25) | func init() { function GetPool (line 40) | func GetPool(size int32) *sync.Pool { function Alloc (line 52) | func Alloc(size int32) []byte { function Free (line 63) | func Free(b []byte) { FILE: common/cmdarg/cmdarg.go type Arg (line 6) | type Arg method String (line 8) | func (c *Arg) String() string { method Set (line 13) | func (c *Arg) Set(value string) error { FILE: common/common.go function Must (line 24) | func Must(err error) { function Must2 (line 31) | func Must2(v interface{}, err error) interface{} { function Error2 (line 37) | func Error2(v interface{}, err error) error { function envFile (line 43) | func envFile() (string, error) { function GetRuntimeEnv (line 62) | func GetRuntimeEnv(key string) (string, error) { function GetGOBIN (line 88) | func GetGOBIN() string { function GetGOPATH (line 108) | func GetGOPATH() string { function GetModuleName (line 128) | func GetModuleName(pathToProjectRoot string) (string, error) { FILE: common/common_test.go function TestMust (line 10) | func TestMust(t *testing.T) { FILE: common/crypto/aes.go function NewAesDecryptionStream (line 12) | func NewAesDecryptionStream(key []byte, iv []byte) cipher.Stream { function NewAesEncryptionStream (line 18) | func NewAesEncryptionStream(key []byte, iv []byte) cipher.Stream { function NewAesStreamMethod (line 22) | func NewAesStreamMethod(key []byte, iv []byte, f func(cipher.Block, []by... function NewAesCTRStream (line 29) | func NewAesCTRStream(key []byte, iv []byte) cipher.Stream { function NewAesGcm (line 34) | func NewAesGcm(key []byte) cipher.AEAD { FILE: common/crypto/auth.go type BytesGenerator (line 14) | type BytesGenerator function GenerateEmptyBytes (line 16) | func GenerateEmptyBytes() BytesGenerator { function GenerateStaticBytes (line 23) | func GenerateStaticBytes(content []byte) BytesGenerator { function GenerateIncreasingNonce (line 29) | func GenerateIncreasingNonce(nonce []byte) BytesGenerator { function GenerateInitialAEADNonce (line 42) | func GenerateInitialAEADNonce() BytesGenerator { type Authenticator (line 46) | type Authenticator interface type AEADAuthenticator (line 53) | type AEADAuthenticator struct method Open (line 59) | func (v *AEADAuthenticator) Open(dst, cipherText []byte) ([]byte, erro... method Seal (line 72) | func (v *AEADAuthenticator) Seal(dst, plainText []byte) ([]byte, error) { type AuthenticationReader (line 85) | type AuthenticationReader struct method readSize (line 114) | func (r *AuthenticationReader) readSize() (uint16, uint16, error) { method readBuffer (line 132) | func (r *AuthenticationReader) readBuffer(size int32, padding int32) (... method readInternal (line 148) | func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBu... method ReadMultiBuffer (line 201) | func (r *AuthenticationReader) ReadMultiBuffer() (buf.MultiBuffer, err... function NewAuthenticationReader (line 98) | func NewAuthenticationReader(auth Authenticator, sizeParser ChunkSizeDec... type AuthenticationWriter (line 223) | type AuthenticationWriter struct method seal (line 244) | func (w *AuthenticationWriter) seal(b []byte) (*buf.Buffer, error) { method writeStream (line 272) | func (w *AuthenticationWriter) writeStream(mb buf.MultiBuffer) error { method writePacket (line 307) | func (w *AuthenticationWriter) writePacket(mb buf.MultiBuffer) error { method WriteMultiBuffer (line 333) | func (w *AuthenticationWriter) WriteMultiBuffer(mb buf.MultiBuffer) er... function NewAuthenticationWriter (line 231) | func NewAuthenticationWriter(auth Authenticator, sizeParser ChunkSizeEnc... FILE: common/crypto/auth_test.go function TestAuthenticationReaderWriter (line 19) | func TestAuthenticationReaderWriter(t *testing.T) { function TestAuthenticationReaderWriterPacket (line 81) | func TestAuthenticationReaderWriterPacket(t *testing.T) { FILE: common/crypto/benchmark_test.go constant benchSize (line 10) | benchSize = 1024 * 1024 function benchmarkStream (line 12) | func benchmarkStream(b *testing.B, c cipher.Stream) { function BenchmarkChaCha20 (line 22) | func BenchmarkChaCha20(b *testing.B) { function BenchmarkChaCha20IETF (line 29) | func BenchmarkChaCha20IETF(b *testing.B) { function BenchmarkAESEncryption (line 36) | func BenchmarkAESEncryption(b *testing.B) { function BenchmarkAESDecryption (line 44) | func BenchmarkAESDecryption(b *testing.B) { FILE: common/crypto/chacha20.go function NewChaCha20Stream (line 11) | func NewChaCha20Stream(key []byte, iv []byte) cipher.Stream { FILE: common/crypto/chacha20_test.go function mustDecodeHex (line 14) | func mustDecodeHex(s string) []byte { function TestChaCha20Stream (line 20) | func TestChaCha20Stream(t *testing.T) { function TestChaCha20Decoding (line 59) | func TestChaCha20Decoding(t *testing.T) { FILE: common/crypto/chunk.go type ChunkSizeDecoder (line 12) | type ChunkSizeDecoder interface type ChunkSizeEncoder (line 18) | type ChunkSizeEncoder interface type PaddingLengthGenerator (line 23) | type PaddingLengthGenerator interface type PlainChunkSizeParser (line 28) | type PlainChunkSizeParser struct method SizeBytes (line 30) | func (PlainChunkSizeParser) SizeBytes() int32 { method Encode (line 34) | func (PlainChunkSizeParser) Encode(size uint16, b []byte) []byte { method Decode (line 39) | func (PlainChunkSizeParser) Decode(b []byte) (uint16, error) { type AEADChunkSizeParser (line 43) | type AEADChunkSizeParser struct method SizeBytes (line 47) | func (p *AEADChunkSizeParser) SizeBytes() int32 { method Encode (line 51) | func (p *AEADChunkSizeParser) Encode(size uint16, b []byte) []byte { method Decode (line 58) | func (p *AEADChunkSizeParser) Decode(b []byte) (uint16, error) { type ChunkStreamReader (line 66) | type ChunkStreamReader struct method readSize (line 95) | func (r *ChunkStreamReader) readSize() (uint16, error) { method ReadMultiBuffer (line 102) | func (r *ChunkStreamReader) ReadMultiBuffer() (buf.MultiBuffer, error) { function NewChunkStreamReader (line 76) | func NewChunkStreamReader(sizeDecoder ChunkSizeDecoder, reader io.Reader... function NewChunkStreamReaderWithChunkCount (line 80) | func NewChunkStreamReaderWithChunkCount(sizeDecoder ChunkSizeDecoder, re... type ChunkStreamWriter (line 128) | type ChunkStreamWriter struct method WriteMultiBuffer (line 140) | func (w *ChunkStreamWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { function NewChunkStreamWriter (line 133) | func NewChunkStreamWriter(sizeEncoder ChunkSizeEncoder, writer io.Writer... FILE: common/crypto/chunk_test.go function TestChunkStreamIO (line 13) | func TestChunkStreamIO(t *testing.T) { FILE: common/crypto/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/crypto/internal/chacha.go constant wordSize (line 10) | wordSize = 4 constant stateSize (line 11) | stateSize = 16 constant blockSize (line 12) | blockSize = stateSize * wordSize type ChaCha20Stream (line 15) | type ChaCha20Stream struct method XORKeyStream (line 51) | func (s *ChaCha20Stream) XORKeyStream(dst, src []byte) { function NewChaCha20Stream (line 22) | func NewChaCha20Stream(key []byte, nonce []byte, rounds int) *ChaCha20St... FILE: common/crypto/internal/chacha_core.generated.go function ChaCha20Block (line 5) | func ChaCha20Block(s *[16]uint32, out []byte, rounds int) { FILE: common/crypto/internal/chacha_core_gen.go function writeQuarterRound (line 11) | func writeQuarterRound(file *os.File, a, b, c, d int) { function writeChacha20Block (line 33) | func writeChacha20Block(file *os.File) { function main (line 57) | func main() { FILE: common/crypto/io.go type CryptionReader (line 10) | type CryptionReader struct method Read (line 22) | func (r *CryptionReader) Read(data []byte) (int, error) { function NewCryptionReader (line 15) | func NewCryptionReader(stream cipher.Stream, reader io.Reader) *Cryption... type CryptionWriter (line 34) | type CryptionWriter struct method Write (line 50) | func (w *CryptionWriter) Write(data []byte) (int, error) { method WriteMultiBuffer (line 60) | func (w *CryptionWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { function NewCryptionWriter (line 41) | func NewCryptionWriter(stream cipher.Stream, writer io.Writer) *Cryption... FILE: common/dice/dice.go function Roll (line 11) | func Roll(n int) int { function RollDeterministic (line 19) | func RollDeterministic(n int, seed int64) int { function RollUint16 (line 27) | func RollUint16() uint16 { function RollUint64 (line 31) | func RollUint64() uint64 { function NewDeterministicDice (line 35) | func NewDeterministicDice(seed int64) *deterministicDice { type deterministicDice (line 39) | type deterministicDice struct method Roll (line 43) | func (dd *deterministicDice) Roll(n int) int { function init (line 50) | func init() { FILE: common/dice/dice_test.go function BenchmarkRoll1 (line 10) | func BenchmarkRoll1(b *testing.B) { function BenchmarkRoll20 (line 16) | func BenchmarkRoll20(b *testing.B) { function BenchmarkIntn1 (line 22) | func BenchmarkIntn1(b *testing.B) { function BenchmarkIntn20 (line 28) | func BenchmarkIntn20(b *testing.B) { FILE: common/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/errors/errorgen/main.go function main (line 12) | func main() { FILE: common/errors/errors.go type hasInnerError (line 13) | type hasInnerError interface type hasSeverity (line 18) | type hasSeverity interface type Error (line 23) | type Error struct method WithPathObj (line 31) | func (err *Error) WithPathObj(obj interface{}) *Error { method pkgPath (line 36) | func (err *Error) pkgPath() string { method Error (line 44) | func (err *Error) Error() string { method Inner (line 70) | func (err *Error) Inner() error { method Base (line 77) | func (err *Error) Base(e error) *Error { method atSeverity (line 82) | func (err *Error) atSeverity(s log.Severity) *Error { method Severity (line 87) | func (err *Error) Severity() log.Severity { method AtDebug (line 103) | func (err *Error) AtDebug() *Error { method AtInfo (line 108) | func (err *Error) AtInfo() *Error { method AtWarning (line 113) | func (err *Error) AtWarning() *Error { method AtError (line 118) | func (err *Error) AtError() *Error { method String (line 123) | func (err *Error) String() string { method WriteToLog (line 128) | func (err *Error) WriteToLog(opts ...ExportOption) { type ExportOptionHolder (line 145) | type ExportOptionHolder struct type ExportOption (line 149) | type ExportOption function New (line 152) | func New(msg ...interface{}) *Error { function Cause (line 160) | func Cause(err error) error { function GetSeverity (line 190) | func GetSeverity(err error) log.Severity { FILE: common/errors/errors_test.go function TestError (line 14) | func TestError(t *testing.T) { type e (line 40) | type e struct function TestErrorMessage (line 42) | func TestErrorMessage(t *testing.T) { FILE: common/errors/multi_error.go type multiError (line 7) | type multiError method Error (line 9) | func (e multiError) Error() string { function Combine (line 19) | func Combine(maybeError ...error) error { FILE: common/interfaces.go type Closable (line 8) | type Closable interface type Interruptible (line 16) | type Interruptible interface function Close (line 23) | func Close(obj interface{}) error { function Interrupt (line 33) | func Interrupt(obj interface{}) error { type Runnable (line 42) | type Runnable interface type HasType (line 50) | type HasType interface type ChainedClosable (line 57) | type ChainedClosable method Close (line 60) | func (cc ChainedClosable) Close() error { FILE: common/log/access.go type logKey (line 10) | type logKey constant accessMessageKey (line 13) | accessMessageKey logKey = iota type AccessStatus (line 16) | type AccessStatus constant AccessAccepted (line 19) | AccessAccepted = AccessStatus("accepted") constant AccessRejected (line 20) | AccessRejected = AccessStatus("rejected") type AccessMessage (line 23) | type AccessMessage struct method String (line 32) | func (m *AccessMessage) String() string { function ContextWithAccessMessage (line 55) | func ContextWithAccessMessage(ctx context.Context, accessMessage *Access... function AccessMessageFromContext (line 59) | func AccessMessageFromContext(ctx context.Context) *AccessMessage { FILE: common/log/log.go type Message (line 10) | type Message interface type Handler (line 15) | type Handler interface type GeneralMessage (line 20) | type GeneralMessage struct method String (line 26) | func (m *GeneralMessage) String() string { function Record (line 31) | func Record(msg Message) { function RegisterHandler (line 40) | func RegisterHandler(handler Handler) { type syncHandler (line 47) | type syncHandler struct method Handle (line 52) | func (h *syncHandler) Handle(msg Message) { method Set (line 61) | func (h *syncHandler) Set(handler Handler) { FILE: common/log/log.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Severity (line 28) | type Severity method Enum (line 56) | func (x Severity) Enum() *Severity { method String (line 62) | func (x Severity) String() string { method Descriptor (line 66) | func (Severity) Descriptor() protoreflect.EnumDescriptor { method Type (line 70) | func (Severity) Type() protoreflect.EnumType { method Number (line 74) | func (x Severity) Number() protoreflect.EnumNumber { method EnumDescriptor (line 79) | func (Severity) EnumDescriptor() ([]byte, []int) { constant Severity_Unknown (line 31) | Severity_Unknown Severity = 0 constant Severity_Error (line 32) | Severity_Error Severity = 1 constant Severity_Warning (line 33) | Severity_Warning Severity = 2 constant Severity_Info (line 34) | Severity_Info Severity = 3 constant Severity_Debug (line 35) | Severity_Debug Severity = 4 function file_common_log_log_proto_rawDescGZIP (line 106) | func file_common_log_log_proto_rawDescGZIP() []byte { function init (line 125) | func init() { file_common_log_log_proto_init() } function file_common_log_log_proto_init (line 126) | func file_common_log_log_proto_init() { FILE: common/log/log_test.go type testLogger (line 12) | type testLogger struct method Handle (line 16) | func (l *testLogger) Handle(msg log.Message) { function TestLogRecord (line 20) | func TestLogRecord(t *testing.T) { FILE: common/log/logger.go type Writer (line 15) | type Writer interface type WriterCreator (line 21) | type WriterCreator type generalLogger (line 23) | type generalLogger struct method run (line 40) | func (l *generalLogger) run() { method Handle (line 69) | func (l *generalLogger) Handle(msg Message) { method Close (line 82) | func (l *generalLogger) Close() error { function NewLogger (line 31) | func NewLogger(logWriterCreator WriterCreator) Handler { type consoleLogWriter (line 86) | type consoleLogWriter struct method Write (line 90) | func (w *consoleLogWriter) Write(s string) error { method Close (line 95) | func (w *consoleLogWriter) Close() error { type fileLogWriter (line 99) | type fileLogWriter struct method Write (line 104) | func (w *fileLogWriter) Write(s string) error { method Close (line 109) | func (w *fileLogWriter) Close() error { function CreateStdoutLogWriter (line 114) | func CreateStdoutLogWriter() WriterCreator { function CreateStderrLogWriter (line 123) | func CreateStderrLogWriter() WriterCreator { function CreateFileLogWriter (line 132) | func CreateFileLogWriter(path string) (WriterCreator, error) { function init (line 150) | func init() { FILE: common/log/logger_test.go function TestFileLogger (line 15) | func TestFileLogger(t *testing.T) { FILE: common/mux/client.go type ClientManager (line 23) | type ClientManager struct method Dispatch (line 28) | func (m *ClientManager) Dispatch(ctx context.Context, link *transport.... type WorkerPicker (line 42) | type WorkerPicker interface type IncrementalWorkerPicker (line 46) | type IncrementalWorkerPicker struct method cleanupFunc (line 54) | func (p *IncrementalWorkerPicker) cleanupFunc() error { method cleanup (line 66) | func (p *IncrementalWorkerPicker) cleanup() { method findAvailable (line 76) | func (p *IncrementalWorkerPicker) findAvailable() int { method pickInternal (line 86) | func (p *IncrementalWorkerPicker) pickInternal() (*ClientWorker, bool,... method PickAvailable (line 117) | func (p *IncrementalWorkerPicker) PickAvailable() (*ClientWorker, erro... type ClientWorkerFactory (line 126) | type ClientWorkerFactory interface type DialingWorkerFactory (line 130) | type DialingWorkerFactory struct method Create (line 136) | func (f *DialingWorkerFactory) Create() (*ClientWorker, error) { type ClientStrategy (line 166) | type ClientStrategy struct type ClientWorker (line 171) | type ClientWorker struct method TotalConnections (line 196) | func (m *ClientWorker) TotalConnections() uint32 { method ActiveConnections (line 200) | func (m *ClientWorker) ActiveConnections() uint32 { method Closed (line 205) | func (m *ClientWorker) Closed() bool { method monitor (line 209) | func (m *ClientWorker) monitor() { method IsClosing (line 269) | func (m *ClientWorker) IsClosing() bool { method IsFull (line 277) | func (m *ClientWorker) IsFull() bool { method Dispatch (line 289) | func (m *ClientWorker) Dispatch(ctx context.Context, link *transport.L... method handleStatueKeepAlive (line 305) | func (m *ClientWorker) handleStatueKeepAlive(meta *FrameMetadata, read... method handleStatusNew (line 312) | func (m *ClientWorker) handleStatusNew(meta *FrameMetadata, reader *bu... method handleStatusKeep (line 319) | func (m *ClientWorker) handleStatusKeep(meta *FrameMetadata, reader *b... method handleStatusEnd (line 351) | func (m *ClientWorker) handleStatusEnd(meta *FrameMetadata, reader *bu... method fetchOutput (line 365) | func (m *ClientWorker) fetchOutput() { function NewClientWorker (line 182) | func NewClientWorker(stream transport.Link, s ClientStrategy) (*ClientWo... function writeFirstPayload (line 229) | func writeFirstPayload(reader buf.Reader, writer *Writer) error { function fetchInput (line 242) | func fetchInput(ctx context.Context, s *Session, output buf.Writer) { FILE: common/mux/client_test.go function TestIncrementalPickerFailure (line 19) | func TestIncrementalPickerFailure(t *testing.T) { function TestClientWorkerEOF (line 36) | func TestClientWorkerEOF(t *testing.T) { function TestClientWorkerClose (line 51) | func TestClientWorkerClose(t *testing.T) { FILE: common/mux/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/mux/frame.go type SessionStatus (line 15) | type SessionStatus constant SessionStatusNew (line 18) | SessionStatusNew SessionStatus = 0x01 constant SessionStatusKeep (line 19) | SessionStatusKeep SessionStatus = 0x02 constant SessionStatusEnd (line 20) | SessionStatusEnd SessionStatus = 0x03 constant SessionStatusKeepAlive (line 21) | SessionStatusKeepAlive SessionStatus = 0x04 constant OptionData (line 25) | OptionData bitmask.Byte = 0x01 constant OptionError (line 26) | OptionError bitmask.Byte = 0x02 type TargetNetwork (line 29) | type TargetNetwork constant TargetNetworkTCP (line 32) | TargetNetworkTCP TargetNetwork = 0x01 constant TargetNetworkUDP (line 33) | TargetNetworkUDP TargetNetwork = 0x02 type FrameMetadata (line 56) | type FrameMetadata struct method WriteTo (line 63) | func (f FrameMetadata) WriteTo(b *buf.Buffer) error { method Unmarshal (line 92) | func (f *FrameMetadata) Unmarshal(reader io.Reader) error { method UnmarshalFromBuffer (line 112) | func (f *FrameMetadata) UnmarshalFromBuffer(b *buf.Buffer) error { FILE: common/mux/frame_test.go function BenchmarkFrameWrite (line 12) | func BenchmarkFrameWrite(b *testing.B) { FILE: common/mux/mux_test.go function readAll (line 17) | func readAll(reader buf.Reader) (buf.MultiBuffer, error) { function TestReaderWriter (line 32) | func TestReaderWriter(t *testing.T) { FILE: common/mux/reader.go type PacketReader (line 12) | type PacketReader struct method ReadMultiBuffer (line 26) | func (r *PacketReader) ReadMultiBuffer() (buf.MultiBuffer, error) { function NewPacketReader (line 18) | func NewPacketReader(reader io.Reader) *PacketReader { function NewStreamReader (line 50) | func NewStreamReader(reader *buf.BufferedReader) buf.Reader { FILE: common/mux/server.go type Server (line 20) | type Server struct method Type (line 34) | func (s *Server) Type() interface{} { method Dispatch (line 39) | func (s *Server) Dispatch(ctx context.Context, dest net.Destination) (... method Start (line 60) | func (s *Server) Start() error { method Close (line 65) | func (s *Server) Close() error { function NewServer (line 25) | func NewServer(ctx context.Context) *Server { type ServerWorker (line 69) | type ServerWorker struct method ActiveConnections (line 96) | func (w *ServerWorker) ActiveConnections() uint32 { method Closed (line 100) | func (w *ServerWorker) Closed() bool { method handleStatusKeepAlive (line 104) | func (w *ServerWorker) handleStatusKeepAlive(meta *FrameMetadata, read... method handleStatusNew (line 111) | func (w *ServerWorker) handleStatusNew(ctx context.Context, meta *Fram... method handleStatusKeep (line 157) | func (w *ServerWorker) handleStatusKeep(meta *FrameMetadata, reader *b... method handleStatusEnd (line 190) | func (w *ServerWorker) handleStatusEnd(meta *FrameMetadata, reader *bu... method handleFrame (line 204) | func (w *ServerWorker) handleFrame(ctx context.Context, reader *buf.Bu... method run (line 231) | func (w *ServerWorker) run(ctx context.Context) { function NewServerWorker (line 75) | func NewServerWorker(ctx context.Context, d routing.Dispatcher, link *tr... function handle (line 85) | func handle(ctx context.Context, s *Session, output buf.Writer) { FILE: common/mux/session.go type SessionManager (line 11) | type SessionManager struct method Closed (line 25) | func (m *SessionManager) Closed() bool { method Size (line 32) | func (m *SessionManager) Size() int { method Count (line 39) | func (m *SessionManager) Count() int { method Allocate (line 46) | func (m *SessionManager) Allocate() *Session { method Add (line 63) | func (m *SessionManager) Add(s *Session) { method Remove (line 75) | func (m *SessionManager) Remove(id uint16) { method Get (line 90) | func (m *SessionManager) Get(id uint16) (*Session, bool) { method CloseIfNoSession (line 102) | func (m *SessionManager) CloseIfNoSession() bool { method Close (line 118) | func (m *SessionManager) Close() error { function NewSessionManager (line 18) | func NewSessionManager() *SessionManager { type Session (line 138) | type Session struct method Close (line 147) | func (s *Session) Close() error { method NewReader (line 155) | func (s *Session) NewReader(reader *buf.BufferedReader) buf.Reader { FILE: common/mux/session_test.go function TestSessionManagerAdd (line 9) | func TestSessionManagerAdd(t *testing.T) { function TestSessionManagerClose (line 40) | func TestSessionManagerClose(t *testing.T) { FILE: common/mux/writer.go type Writer (line 11) | type Writer struct method getNextFrameMeta (line 39) | func (w *Writer) getNextFrameMeta() FrameMetadata { method writeMetaOnly (line 55) | func (w *Writer) writeMetaOnly() error { method writeData (line 79) | func (w *Writer) writeData(mb buf.MultiBuffer) error { method WriteMultiBuffer (line 87) | func (w *Writer) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 112) | func (w *Writer) Close() error { function NewWriter (line 20) | func NewWriter(id uint16, dest net.Destination, writer buf.Writer, trans... function NewResponseWriter (line 30) | func NewResponseWriter(id uint16, writer buf.Writer, transferType protoc... function writeMetaWithFrame (line 64) | func writeMetaWithFrame(writer buf.Writer, meta FrameMetadata, data buf.... FILE: common/net/address.go type AddressFamily (line 27) | type AddressFamily method IsIPv4 (line 41) | func (af AddressFamily) IsIPv4() bool { method IsIPv6 (line 46) | func (af AddressFamily) IsIPv6() bool { method IsIP (line 51) | func (af AddressFamily) IsIP() bool { method IsDomain (line 56) | func (af AddressFamily) IsDomain() bool { constant AddressFamilyIPv4 (line 31) | AddressFamilyIPv4 = AddressFamily(0) constant AddressFamilyIPv6 (line 34) | AddressFamilyIPv6 = AddressFamily(1) constant AddressFamilyDomain (line 37) | AddressFamilyDomain = AddressFamily(2) type Address (line 62) | type Address interface function isAlphaNum (line 70) | func isAlphaNum(c byte) bool { function ParseAddress (line 76) | func ParseAddress(addr string) Address { function IPAddress (line 98) | func IPAddress(ip []byte) Address { function DomainAddress (line 121) | func DomainAddress(domain string) Address { type ipv4Address (line 125) | type ipv4Address method IP (line 127) | func (a ipv4Address) IP() net.IP { method Domain (line 131) | func (ipv4Address) Domain() string { method Family (line 135) | func (ipv4Address) Family() AddressFamily { method String (line 139) | func (a ipv4Address) String() string { type ipv6Address (line 143) | type ipv6Address method IP (line 145) | func (a ipv6Address) IP() net.IP { method Domain (line 149) | func (ipv6Address) Domain() string { method Family (line 153) | func (ipv6Address) Family() AddressFamily { method String (line 157) | func (a ipv6Address) String() string { type domainAddress (line 161) | type domainAddress method IP (line 163) | func (domainAddress) IP() net.IP { method Domain (line 167) | func (a domainAddress) Domain() string { method Family (line 171) | func (domainAddress) Family() AddressFamily { method String (line 175) | func (a domainAddress) String() string { method AsAddress (line 180) | func (d *IPOrDomain) AsAddress() Address { function NewIPOrDomain (line 194) | func NewIPOrDomain(addr Address) *IPOrDomain { FILE: common/net/address.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type IPOrDomain (line 30) | type IPOrDomain struct method Reset (line 41) | func (x *IPOrDomain) Reset() { method String (line 50) | func (x *IPOrDomain) String() string { method ProtoMessage (line 54) | func (*IPOrDomain) ProtoMessage() {} method ProtoReflect (line 56) | func (x *IPOrDomain) ProtoReflect() protoreflect.Message { method Descriptor (line 69) | func (*IPOrDomain) Descriptor() ([]byte, []int) { method GetAddress (line 73) | func (m *IPOrDomain) GetAddress() isIPOrDomain_Address { method GetIp (line 80) | func (x *IPOrDomain) GetIp() []byte { method GetDomain (line 87) | func (x *IPOrDomain) GetDomain() string { type isIPOrDomain_Address (line 94) | type isIPOrDomain_Address interface type IPOrDomain_Ip (line 98) | type IPOrDomain_Ip struct method isIPOrDomain_Address (line 108) | func (*IPOrDomain_Ip) isIPOrDomain_Address() {} type IPOrDomain_Domain (line 103) | type IPOrDomain_Domain struct method isIPOrDomain_Address (line 110) | func (*IPOrDomain_Domain) isIPOrDomain_Address() {} function file_common_net_address_proto_rawDescGZIP (line 135) | func file_common_net_address_proto_rawDescGZIP() []byte { function init (line 154) | func init() { file_common_net_address_proto_init() } function file_common_net_address_proto_init (line 155) | func file_common_net_address_proto_init() { FILE: common/net/address_test.go function TestAddressProperty (line 12) | func TestAddressProperty(t *testing.T) { function TestInvalidAddressConvertion (line 146) | func TestInvalidAddressConvertion(t *testing.T) { function BenchmarkParseAddressIPv4 (line 169) | func BenchmarkParseAddressIPv4(b *testing.B) { function BenchmarkParseAddressIPv6 (line 178) | func BenchmarkParseAddressIPv6(b *testing.B) { function BenchmarkParseAddressDomain (line 187) | func BenchmarkParseAddressDomain(b *testing.B) { FILE: common/net/connection.go type ConnectionOption (line 15) | type ConnectionOption function ConnectionLocalAddr (line 17) | func ConnectionLocalAddr(a net.Addr) ConnectionOption { function ConnectionRemoteAddr (line 23) | func ConnectionRemoteAddr(a net.Addr) ConnectionOption { function ConnectionInput (line 29) | func ConnectionInput(writer io.Writer) ConnectionOption { function ConnectionInputMulti (line 35) | func ConnectionInputMulti(writer buf.Writer) ConnectionOption { function ConnectionOutput (line 41) | func ConnectionOutput(reader io.Reader) ConnectionOption { function ConnectionOutputMulti (line 47) | func ConnectionOutputMulti(reader buf.Reader) ConnectionOption { function ConnectionOutputMultiUDP (line 53) | func ConnectionOutputMultiUDP(reader buf.Reader) ConnectionOption { function ConnectionOnClose (line 62) | func ConnectionOnClose(n io.Closer) ConnectionOption { function NewConnection (line 68) | func NewConnection(opts ...ConnectionOption) net.Conn { type connection (line 88) | type connection struct method Read (line 97) | func (c *connection) Read(b []byte) (int, error) { method ReadMultiBuffer (line 102) | func (c *connection) ReadMultiBuffer() (buf.MultiBuffer, error) { method Write (line 107) | func (c *connection) Write(b []byte) (int, error) { method WriteMultiBuffer (line 118) | func (c *connection) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 128) | func (c *connection) Close() error { method LocalAddr (line 140) | func (c *connection) LocalAddr() net.Addr { method RemoteAddr (line 145) | func (c *connection) RemoteAddr() net.Addr { method SetDeadline (line 150) | func (c *connection) SetDeadline(t time.Time) error { method SetReadDeadline (line 155) | func (c *connection) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 160) | func (c *connection) SetWriteDeadline(t time.Time) error { FILE: common/net/destination.go type Destination (line 9) | type Destination struct method NetAddr (line 80) | func (d Destination) NetAddr() string { method String (line 85) | func (d Destination) String() string { method IsValid (line 97) | func (d Destination) IsValid() bool { function DestinationFromAddr (line 16) | func DestinationFromAddr(addr net.Addr) Destination { function ParseDestination (line 31) | func ParseDestination(dest string) (Destination, error) { function TCPDestination (line 62) | func TCPDestination(address Address, port Port) Destination { function UDPDestination (line 71) | func UDPDestination(address Address, port Port) Destination { method AsDestination (line 102) | func (p *Endpoint) AsDestination() Destination { FILE: common/net/destination.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Endpoint (line 29) | type Endpoint struct method Reset (line 39) | func (x *Endpoint) Reset() { method String (line 48) | func (x *Endpoint) String() string { method ProtoMessage (line 52) | func (*Endpoint) ProtoMessage() {} method ProtoReflect (line 54) | func (x *Endpoint) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*Endpoint) Descriptor() ([]byte, []int) { method GetNetwork (line 71) | func (x *Endpoint) GetNetwork() Network { method GetAddress (line 78) | func (x *Endpoint) GetAddress() *IPOrDomain { method GetPort (line 85) | func (x *Endpoint) GetPort() uint32 { function file_common_net_destination_proto_rawDescGZIP (line 124) | func file_common_net_destination_proto_rawDescGZIP() []byte { function init (line 147) | func init() { file_common_net_destination_proto_init() } function file_common_net_destination_proto_init (line 148) | func file_common_net_destination_proto_init() { FILE: common/net/destination_test.go function TestDestinationProperty (line 11) | func TestDestinationProperty(t *testing.T) { function TestDestinationParse (line 46) | func TestDestinationParse(t *testing.T) { FILE: common/net/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/net/network.go method SystemString (line 3) | func (n Network) SystemString() string { function HasNetwork (line 15) | func HasNetwork(list []Network, network Network) bool { FILE: common/net/network.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Network (line 28) | type Network method Enum (line 54) | func (x Network) Enum() *Network { method String (line 60) | func (x Network) String() string { method Descriptor (line 64) | func (Network) Descriptor() protoreflect.EnumDescriptor { method Type (line 68) | func (Network) Type() protoreflect.EnumType { method Number (line 72) | func (x Network) Number() protoreflect.EnumNumber { method EnumDescriptor (line 77) | func (Network) EnumDescriptor() ([]byte, []int) { constant Network_Unknown (line 31) | Network_Unknown Network = 0 constant Network_RawTCP (line 33) | Network_RawTCP Network = 1 constant Network_TCP (line 34) | Network_TCP Network = 2 constant Network_UDP (line 35) | Network_UDP Network = 3 type NetworkList (line 82) | type NetworkList struct method Reset (line 90) | func (x *NetworkList) Reset() { method String (line 99) | func (x *NetworkList) String() string { method ProtoMessage (line 103) | func (*NetworkList) ProtoMessage() {} method ProtoReflect (line 105) | func (x *NetworkList) ProtoReflect() protoreflect.Message { method Descriptor (line 118) | func (*NetworkList) Descriptor() ([]byte, []int) { method GetNetwork (line 122) | func (x *NetworkList) GetNetwork() []Network { function file_common_net_network_proto_rawDescGZIP (line 156) | func file_common_net_network_proto_rawDescGZIP() []byte { function init (line 178) | func init() { file_common_net_network_proto_init() } function file_common_net_network_proto_init (line 179) | func file_common_net_network_proto_init() { FILE: common/net/port.go type Port (line 9) | type Port method Value (line 37) | func (p Port) Value() uint16 { method String (line 42) | func (p Port) String() string { function PortFromBytes (line 13) | func PortFromBytes(port []byte) Port { function PortFromInt (line 19) | func PortFromInt(val uint32) (Port, error) { function PortFromString (line 28) | func PortFromString(s string) (Port, error) { method FromPort (line 47) | func (p *PortRange) FromPort() Port { method ToPort (line 52) | func (p *PortRange) ToPort() Port { method Contains (line 57) | func (p *PortRange) Contains(port Port) bool { function SinglePortRange (line 62) | func SinglePortRange(p Port) *PortRange { type MemoryPortRange (line 69) | type MemoryPortRange struct method Contains (line 74) | func (r MemoryPortRange) Contains(port Port) bool { type MemoryPortList (line 78) | type MemoryPortList method Contains (line 88) | func (mpl MemoryPortList) Contains(port Port) bool { function PortListFromProto (line 80) | func PortListFromProto(l *PortList) MemoryPortList { FILE: common/net/port.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type PortRange (line 29) | type PortRange struct method Reset (line 40) | func (x *PortRange) Reset() { method String (line 49) | func (x *PortRange) String() string { method ProtoMessage (line 53) | func (*PortRange) ProtoMessage() {} method ProtoReflect (line 55) | func (x *PortRange) ProtoReflect() protoreflect.Message { method Descriptor (line 68) | func (*PortRange) Descriptor() ([]byte, []int) { method GetFrom (line 72) | func (x *PortRange) GetFrom() uint32 { method GetTo (line 79) | func (x *PortRange) GetTo() uint32 { type PortList (line 87) | type PortList struct method Reset (line 95) | func (x *PortList) Reset() { method String (line 104) | func (x *PortList) String() string { method ProtoMessage (line 108) | func (*PortList) ProtoMessage() {} method ProtoReflect (line 110) | func (x *PortList) ProtoReflect() protoreflect.Message { method Descriptor (line 123) | func (*PortList) Descriptor() ([]byte, []int) { method GetRange (line 127) | func (x *PortList) GetRange() []*PortRange { function file_common_net_port_proto_rawDescGZIP (line 160) | func file_common_net_port_proto_rawDescGZIP() []byte { function init (line 181) | func init() { file_common_net_port_proto_init() } function file_common_net_port_proto_init (line 182) | func file_common_net_port_proto_init() { FILE: common/net/port_test.go function TestPortRangeContains (line 9) | func TestPortRangeContains(t *testing.T) { FILE: common/net/system.go constant IPv4len (line 47) | IPv4len = net.IPv4len constant IPv6len (line 48) | IPv6len = net.IPv6len FILE: common/peer/latency.go type Latency (line 7) | type Latency interface type HasLatency (line 11) | type HasLatency interface type AverageLatency (line 16) | type AverageLatency struct method Update (line 21) | func (al *AverageLatency) Update(newValue uint64) { method Value (line 28) | func (al *AverageLatency) Value() uint64 { FILE: common/platform/ctlcmd/attr_other.go function getSysProcAttr (line 7) | func getSysProcAttr() *syscall.SysProcAttr { FILE: common/platform/ctlcmd/attr_windows.go function getSysProcAttr (line 7) | func getSysProcAttr() *syscall.SysProcAttr { FILE: common/platform/ctlcmd/ctlcmd.go function Run (line 15) | func Run(args []string, input io.Reader) (buf.MultiBuffer, error) { FILE: common/platform/ctlcmd/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/platform/filesystem/file.go type FileReaderFunc (line 11) | type FileReaderFunc function ReadFile (line 17) | func ReadFile(path string) ([]byte, error) { function ReadAsset (line 27) | func ReadAsset(file string) ([]byte, error) { function CopyFile (line 31) | func CopyFile(dst string, src string) error { FILE: common/platform/others.go function ExpandEnv (line 10) | func ExpandEnv(s string) string { function LineSeparator (line 14) | func LineSeparator() string { function GetToolLocation (line 18) | func GetToolLocation(file string) string { function GetAssetLocation (line 25) | func GetAssetLocation(file string) string { FILE: common/platform/platform.go type EnvFlag (line 10) | type EnvFlag struct method GetValue (line 22) | func (f EnvFlag) GetValue(defaultValue func() string) string { method GetValueAsInt (line 35) | func (f EnvFlag) GetValueAsInt(defaultValue int) int { function NewEnvFlag (line 15) | func NewEnvFlag(name string) EnvFlag { function NormalizeEnvName (line 51) | func NormalizeEnvName(name string) string { function getExecutableDir (line 55) | func getExecutableDir() string { function getExecutableSubDir (line 63) | func getExecutableSubDir(dir string) func() string { function GetPluginDirectory (line 69) | func GetPluginDirectory() string { function GetConfigurationPath (line 75) | func GetConfigurationPath() string { function GetConfDirPath (line 82) | func GetConfDirPath() string { FILE: common/platform/platform_test.go function TestNormalizeEnvName (line 13) | func TestNormalizeEnvName(t *testing.T) { function TestEnvFlag (line 38) | func TestEnvFlag(t *testing.T) { function TestGetAssetLocation (line 46) | func TestGetAssetLocation(t *testing.T) { FILE: common/platform/windows.go function ExpandEnv (line 7) | func ExpandEnv(s string) string { function LineSeparator (line 12) | func LineSeparator() string { function GetToolLocation (line 16) | func GetToolLocation(file string) string { function GetAssetLocation (line 23) | func GetAssetLocation(file string) string { FILE: common/protocol/account.go type Account (line 4) | type Account interface type AsAccount (line 9) | type AsAccount interface FILE: common/protocol/address.go type AddressOption (line 12) | type AddressOption function PortThenAddress (line 14) | func PortThenAddress() AddressOption { function AddressFamilyByte (line 20) | func AddressFamilyByte(b byte, f net.AddressFamily) AddressOption { type AddressTypeParser (line 30) | type AddressTypeParser function WithAddressTypeParser (line 32) | func WithAddressTypeParser(atp AddressTypeParser) AddressOption { type AddressSerializer (line 38) | type AddressSerializer interface constant afInvalid (line 44) | afInvalid = 255 type option (line 46) | type option struct function NewAddressParser (line 54) | func NewAddressParser(options ...AddressOption) AddressSerializer { type portFirstAddressParser (line 82) | type portFirstAddressParser struct method ReadAddressPort (line 86) | func (p portFirstAddressParser) ReadAddressPort(buffer *buf.Buffer, in... method WriteAddressPort (line 104) | func (p portFirstAddressParser) WriteAddressPort(writer io.Writer, add... type portLastAddressParser (line 112) | type portLastAddressParser struct method ReadAddressPort (line 116) | func (p portLastAddressParser) ReadAddressPort(buffer *buf.Buffer, inp... method WriteAddressPort (line 135) | func (p portLastAddressParser) WriteAddressPort(writer io.Writer, addr... function readPort (line 143) | func readPort(b *buf.Buffer, reader io.Reader) (net.Port, error) { function writePort (line 150) | func writePort(writer io.Writer, port net.Port) error { function maybeIPPrefix (line 154) | func maybeIPPrefix(b byte) bool { function isValidDomain (line 158) | func isValidDomain(d string) bool { type addressParser (line 167) | type addressParser struct method readAddress (line 173) | func (p *addressParser) readAddress(b *buf.Buffer, reader io.Reader) (... method writeAddress (line 227) | func (p *addressParser) writeAddress(writer io.Writer, address net.Add... FILE: common/protocol/address_test.go function TestAddressReading (line 15) | func TestAddressReading(t *testing.T) { function TestAddressWriting (line 111) | func TestAddressWriting(t *testing.T) { function BenchmarkAddressReadingIPv4 (line 145) | func BenchmarkAddressReadingIPv4(b *testing.B) { function BenchmarkAddressReadingIPv6 (line 166) | func BenchmarkAddressReadingIPv6(b *testing.B) { function BenchmarkAddressReadingDomain (line 187) | func BenchmarkAddressReadingDomain(b *testing.B) { function BenchmarkAddressWritingIPv4 (line 208) | func BenchmarkAddressWritingIPv4(b *testing.B) { function BenchmarkAddressWritingIPv6 (line 220) | func BenchmarkAddressWritingIPv6(b *testing.B) { function BenchmarkAddressWritingDomain (line 232) | func BenchmarkAddressWritingDomain(b *testing.B) { FILE: common/protocol/bittorrent/bittorrent.go type SniffHeader (line 9) | type SniffHeader struct method Protocol (line 12) | func (h *SniffHeader) Protocol() string { method Domain (line 16) | func (h *SniffHeader) Domain() string { function SniffBittorrent (line 22) | func SniffBittorrent(b []byte) (*SniffHeader, error) { FILE: common/protocol/context.go type key (line 7) | type key constant requestKey (line 10) | requestKey key = iota function ContextWithRequestHeader (line 13) | func ContextWithRequestHeader(ctx context.Context, request *RequestHeade... function RequestHeaderFromContext (line 17) | func RequestHeaderFromContext(ctx context.Context) *RequestHeader { FILE: common/protocol/dns/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/protocol/dns/io.go function PackMessage (line 13) | func PackMessage(msg *dnsmessage.Message) (*buf.Buffer, error) { type MessageReader (line 25) | type MessageReader interface type UDPReader (line 29) | type UDPReader struct method readCache (line 36) | func (r *UDPReader) readCache() *buf.Buffer { method refill (line 45) | func (r *UDPReader) refill() error { method ReadMessage (line 57) | func (r *UDPReader) ReadMessage() (*buf.Buffer, error) { method Close (line 70) | func (r *UDPReader) Close() error { type TCPReader (line 81) | type TCPReader struct method ReadMessage (line 93) | func (r *TCPReader) ReadMessage() (*buf.Buffer, error) { method Interrupt (line 108) | func (r *TCPReader) Interrupt() { method Close (line 112) | func (r *TCPReader) Close() error { function NewTCPReader (line 85) | func NewTCPReader(reader buf.Reader) *TCPReader { type MessageWriter (line 116) | type MessageWriter interface type UDPWriter (line 120) | type UDPWriter struct method WriteMessage (line 124) | func (w *UDPWriter) WriteMessage(b *buf.Buffer) error { type TCPWriter (line 128) | type TCPWriter struct method WriteMessage (line 132) | func (w *TCPWriter) WriteMessage(b *buf.Buffer) error { FILE: common/protocol/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/protocol/headers.go type RequestCommand (line 12) | type RequestCommand method TransferType (line 20) | func (c RequestCommand) TransferType() TransferType { constant RequestCommandTCP (line 15) | RequestCommandTCP = RequestCommand(0x01) constant RequestCommandUDP (line 16) | RequestCommandUDP = RequestCommand(0x02) constant RequestCommandMux (line 17) | RequestCommandMux = RequestCommand(0x03) constant RequestOptionChunkStream (line 33) | RequestOptionChunkStream bitmask.Byte = 0x01 constant RequestOptionConnectionReuse (line 36) | RequestOptionConnectionReuse bitmask.Byte = 0x02 constant RequestOptionChunkMasking (line 38) | RequestOptionChunkMasking bitmask.Byte = 0x04 constant RequestOptionGlobalPadding (line 40) | RequestOptionGlobalPadding bitmask.Byte = 0x08 type RequestHeader (line 43) | type RequestHeader struct method Destination (line 53) | func (h *RequestHeader) Destination() net.Destination { constant ResponseOptionConnectionReuse (line 61) | ResponseOptionConnectionReuse bitmask.Byte = 0x01 type ResponseCommand (line 64) | type ResponseCommand interface type ResponseHeader (line 66) | type ResponseHeader struct type CommandSwitchAccount (line 71) | type CommandSwitchAccount struct method GetSecurityType (line 80) | func (sc *SecurityConfig) GetSecurityType() SecurityType { function isDomainTooLong (line 90) | func isDomainTooLong(domain string) bool { FILE: common/protocol/headers.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type SecurityType (line 28) | type SecurityType method Enum (line 59) | func (x SecurityType) Enum() *SecurityType { method String (line 65) | func (x SecurityType) String() string { method Descriptor (line 69) | func (SecurityType) Descriptor() protoreflect.EnumDescriptor { method Type (line 73) | func (SecurityType) Type() protoreflect.EnumType { method Number (line 77) | func (x SecurityType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 82) | func (SecurityType) EnumDescriptor() ([]byte, []int) { constant SecurityType_UNKNOWN (line 31) | SecurityType_UNKNOWN SecurityType = 0 constant SecurityType_LEGACY (line 32) | SecurityType_LEGACY SecurityType = 1 constant SecurityType_AUTO (line 33) | SecurityType_AUTO SecurityType = 2 constant SecurityType_AES128_GCM (line 34) | SecurityType_AES128_GCM SecurityType = 3 constant SecurityType_CHACHA20_POLY1305 (line 35) | SecurityType_CHACHA20_POLY1305 SecurityType = 4 constant SecurityType_NONE (line 36) | SecurityType_NONE SecurityType = 5 type SecurityConfig (line 86) | type SecurityConfig struct method Reset (line 94) | func (x *SecurityConfig) Reset() { method String (line 103) | func (x *SecurityConfig) String() string { method ProtoMessage (line 107) | func (*SecurityConfig) ProtoMessage() {} method ProtoReflect (line 109) | func (x *SecurityConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 122) | func (*SecurityConfig) Descriptor() ([]byte, []int) { method GetType (line 126) | func (x *SecurityConfig) GetType() SecurityType { function file_common_protocol_headers_proto_rawDescGZIP (line 165) | func file_common_protocol_headers_proto_rawDescGZIP() []byte { function init (line 187) | func init() { file_common_protocol_headers_proto_init() } function file_common_protocol_headers_proto_init (line 188) | func file_common_protocol_headers_proto_init() { FILE: common/protocol/http/headers.go function ParseXForwardedFor (line 12) | func ParseXForwardedFor(header http.Header) []net.Address { function RemoveHopByHopHeaders (line 26) | func RemoveHopByHopHeaders(header http.Header) { function ParseHost (line 50) | func ParseHost(rawHost string, defaultPort net.Port) (net.Destination, e... FILE: common/protocol/http/headers_test.go function TestParseXForwardedFor (line 16) | func TestParseXForwardedFor(t *testing.T) { function TestHopByHopHeadersRemoving (line 25) | func TestHopByHopHeadersRemoving(t *testing.T) { function TestParseHost (line 82) | func TestParseHost(t *testing.T) { FILE: common/protocol/http/sniff.go type version (line 12) | type version constant HTTP1 (line 15) | HTTP1 version = iota constant HTTP2 (line 16) | HTTP2 type SniffHeader (line 19) | type SniffHeader struct method Protocol (line 24) | func (h *SniffHeader) Protocol() string { method Domain (line 35) | func (h *SniffHeader) Domain() string { function beginWithHTTPMethod (line 45) | func beginWithHTTPMethod(b []byte) error { function SniffHTTP (line 59) | func SniffHTTP(b []byte) (*SniffHeader, error) { FILE: common/protocol/http/sniff_test.go function TestHTTPHeaders (line 9) | func TestHTTPHeaders(t *testing.T) { FILE: common/protocol/id.go constant IDBytesLen (line 13) | IDBytesLen = 16 type IDHash (line 16) | type IDHash function DefaultIDHash (line 18) | func DefaultIDHash(key []byte) hash.Hash { type ID (line 23) | type ID struct method Equals (line 29) | func (id *ID) Equals(another *ID) bool { method Bytes (line 33) | func (id *ID) Bytes() []byte { method String (line 37) | func (id *ID) String() string { method UUID (line 41) | func (id *ID) UUID() uuid.UUID { method CmdKey (line 45) | func (id ID) CmdKey() []byte { function NewID (line 50) | func NewID(uuid uuid.UUID) *ID { function nextID (line 59) | func nextID(u *uuid.UUID) uuid.UUID { function NewAlterIDs (line 73) | func NewAlterIDs(primary *ID, alterIDCount uint16) []*ID { FILE: common/protocol/id_test.go function TestIdEquals (line 10) | func TestIdEquals(t *testing.T) { FILE: common/protocol/payload.go type TransferType (line 3) | type TransferType constant TransferTypeStream (line 6) | TransferTypeStream TransferType = 0 constant TransferTypePacket (line 7) | TransferTypePacket TransferType = 1 type AddressType (line 10) | type AddressType constant AddressTypeIPv4 (line 13) | AddressTypeIPv4 AddressType = 1 constant AddressTypeDomain (line 14) | AddressTypeDomain AddressType = 2 constant AddressTypeIPv6 (line 15) | AddressTypeIPv6 AddressType = 3 FILE: common/protocol/server_picker.go type ServerList (line 7) | type ServerList struct method AddServer (line 16) | func (sl *ServerList) AddServer(server *ServerSpec) { method Size (line 23) | func (sl *ServerList) Size() uint32 { method GetServer (line 30) | func (sl *ServerList) GetServer(idx uint32) *ServerSpec { method removeServer (line 49) | func (sl *ServerList) removeServer(idx uint32) { function NewServerList (line 12) | func NewServerList() *ServerList { type ServerPicker (line 55) | type ServerPicker interface type RoundRobinServerPicker (line 59) | type RoundRobinServerPicker struct method PickServer (line 72) | func (p *RoundRobinServerPicker) PickServer() *ServerSpec { function NewRoundRobinServerPicker (line 65) | func NewRoundRobinServerPicker(serverlist *ServerList) *RoundRobinServer... FILE: common/protocol/server_picker_test.go function TestServerList (line 11) | func TestServerList(t *testing.T) { function TestServerPicker (line 38) | func TestServerPicker(t *testing.T) { FILE: common/protocol/server_spec.go type ValidationStrategy (line 11) | type ValidationStrategy interface type alwaysValidStrategy (line 16) | type alwaysValidStrategy struct method IsValid (line 22) | func (alwaysValidStrategy) IsValid() bool { method Invalidate (line 26) | func (alwaysValidStrategy) Invalidate() {} function AlwaysValid (line 18) | func AlwaysValid() ValidationStrategy { type timeoutValidStrategy (line 28) | type timeoutValidStrategy struct method IsValid (line 38) | func (s *timeoutValidStrategy) IsValid() bool { method Invalidate (line 42) | func (s *timeoutValidStrategy) Invalidate() { function BeforeTime (line 32) | func BeforeTime(t time.Time) ValidationStrategy { type ServerSpec (line 46) | type ServerSpec struct method Destination (line 74) | func (s *ServerSpec) Destination() net.Destination { method HasUser (line 78) | func (s *ServerSpec) HasUser(user *MemoryUser) bool { method AddUser (line 90) | func (s *ServerSpec) AddUser(user *MemoryUser) { method PickUser (line 101) | func (s *ServerSpec) PickUser() *MemoryUser { method IsValid (line 116) | func (s *ServerSpec) IsValid() bool { method Invalidate (line 120) | func (s *ServerSpec) Invalidate() { function NewServerSpec (line 53) | func NewServerSpec(dest net.Destination, valid ValidationStrategy, users... function NewServerSpecFromPB (line 61) | func NewServerSpecFromPB(spec *ServerEndpoint) (*ServerSpec, error) { FILE: common/protocol/server_spec.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type ServerEndpoint (line 29) | type ServerEndpoint struct method Reset (line 39) | func (x *ServerEndpoint) Reset() { method String (line 48) | func (x *ServerEndpoint) String() string { method ProtoMessage (line 52) | func (*ServerEndpoint) ProtoMessage() {} method ProtoReflect (line 54) | func (x *ServerEndpoint) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*ServerEndpoint) Descriptor() ([]byte, []int) { method GetAddress (line 71) | func (x *ServerEndpoint) GetAddress() *net.IPOrDomain { method GetPort (line 78) | func (x *ServerEndpoint) GetPort() uint32 { method GetUser (line 85) | func (x *ServerEndpoint) GetUser() []*User { function file_common_protocol_server_spec_proto_rawDescGZIP (line 126) | func file_common_protocol_server_spec_proto_rawDescGZIP() []byte { function init (line 149) | func init() { file_common_protocol_server_spec_proto_init() } function file_common_protocol_server_spec_proto_init (line 150) | func file_common_protocol_server_spec_proto_init() { FILE: common/protocol/server_spec_test.go function TestAlwaysValidStrategy (line 15) | func TestAlwaysValidStrategy(t *testing.T) { function TestTimeoutValidStrategy (line 26) | func TestTimeoutValidStrategy(t *testing.T) { function TestUserInServerSpec (line 43) | func TestUserInServerSpec(t *testing.T) { function TestPickUser (line 73) | func TestPickUser(t *testing.T) { FILE: common/protocol/time.go type Timestamp (line 9) | type Timestamp type TimestampGenerator (line 11) | type TimestampGenerator function NowTime (line 13) | func NowTime() Timestamp { function NewTimestampGenerator (line 17) | func NewTimestampGenerator(base Timestamp, delta int) TimestampGenerator { FILE: common/protocol/time_test.go function TestGenerateRandomInt64InRange (line 10) | func TestGenerateRandomInt64InRange(t *testing.T) { FILE: common/protocol/tls/cert/cert.go type Certificate (line 20) | type Certificate struct method ToPEM (line 42) | func (c *Certificate) ToPEM() ([]byte, []byte) { function ParseCertificate (line 27) | func ParseCertificate(certPEM []byte, keyPEM []byte) (*Certificate, erro... type Option (line 47) | type Option function Authority (line 49) | func Authority(isCA bool) Option { function NotBefore (line 55) | func NotBefore(t time.Time) Option { function NotAfter (line 61) | func NotAfter(t time.Time) Option { function DNSNames (line 67) | func DNSNames(names ...string) Option { function CommonName (line 73) | func CommonName(name string) Option { function KeyUsage (line 79) | func KeyUsage(usage x509.KeyUsage) Option { function Organization (line 85) | func Organization(org string) Option { function MustGenerate (line 91) | func MustGenerate(parent *Certificate, opts ...Option) *Certificate { function publicKey (line 97) | func publicKey(priv interface{}) interface{} { function Generate (line 110) | func Generate(parent *Certificate, opts ...Option) (*Certificate, error) { FILE: common/protocol/tls/cert/cert_test.go function TestGenerate (line 15) | func TestGenerate(t *testing.T) { function generate (line 22) | func generate(domainNames []string, isCA bool, jsonOutput bool, fileOutp... type jsonCert (line 59) | type jsonCert struct function printJSON (line 64) | func printJSON(certificate *Certificate) { function printFile (line 75) | func printFile(certificate *Certificate, name string) error { function writeFile (line 83) | func writeFile(content []byte, name string) error { FILE: common/protocol/tls/cert/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/protocol/tls/cert/privateKey.go type ecPrivateKey (line 9) | type ecPrivateKey struct type pkcs8 (line 16) | type pkcs8 struct type pkcs1AdditionalRSAPrime (line 23) | type pkcs1AdditionalRSAPrime struct type pkcs1PrivateKey (line 31) | type pkcs1PrivateKey struct FILE: common/protocol/tls/sniff.go type SniffHeader (line 11) | type SniffHeader struct method Protocol (line 15) | func (h *SniffHeader) Protocol() string { method Domain (line 19) | func (h *SniffHeader) Domain() string { function IsValidTLSVersion (line 26) | func IsValidTLSVersion(major, minor byte) bool { function ReadClientHello (line 32) | func ReadClientHello(data []byte, h *SniffHeader) error { function SniffTLS (line 124) | func SniffTLS(b []byte) (*SniffHeader, error) { FILE: common/protocol/tls/sniff_test.go function TestTLSHeaders (line 9) | func TestTLSHeaders(t *testing.T) { FILE: common/protocol/udp/packet.go type Packet (line 9) | type Packet struct FILE: common/protocol/user.go method GetTypedAccount (line 3) | func (u *User) GetTypedAccount() (Account, error) { method ToMemoryUser (line 21) | func (u *User) ToMemoryUser() (*MemoryUser, error) { type MemoryUser (line 34) | type MemoryUser struct FILE: common/protocol/user.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type User (line 30) | type User struct method Reset (line 42) | func (x *User) Reset() { method String (line 51) | func (x *User) String() string { method ProtoMessage (line 55) | func (*User) ProtoMessage() {} method ProtoReflect (line 57) | func (x *User) ProtoReflect() protoreflect.Message { method Descriptor (line 70) | func (*User) Descriptor() ([]byte, []int) { method GetLevel (line 74) | func (x *User) GetLevel() uint32 { method GetEmail (line 81) | func (x *User) GetEmail() string { method GetAccount (line 88) | func (x *User) GetAccount() *serial.TypedMessage { function file_common_protocol_user_proto_rawDescGZIP (line 125) | func file_common_protocol_user_proto_rawDescGZIP() []byte { function init (line 146) | func init() { file_common_protocol_user_proto_init() } function file_common_protocol_user_proto_init (line 147) | func file_common_protocol_user_proto_init() { FILE: common/retry/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: common/retry/retry.go type Strategy (line 14) | type Strategy interface type retryer (line 19) | type retryer struct method On (line 25) | func (r *retryer) On(method func() error) error { function Timed (line 45) | func Timed(attempts int, delay uint32) Strategy { function ExponentialBackoff (line 54) | func ExponentialBackoff(attempts int, delay uint32) Strategy { FILE: common/retry/retry_test.go function TestNoRetry (line 16) | func TestNoRetry(t *testing.T) { function TestRetryOnce (line 29) | func TestRetryOnce(t *testing.T) { function TestRetryMultiple (line 47) | func TestRetryMultiple(t *testing.T) { function TestRetryExhausted (line 65) | func TestRetryExhausted(t *testing.T) { function TestExponentialBackoff (line 83) | func TestExponentialBackoff(t *testing.T) { FILE: common/serial/serial.go function ReadUint16 (line 9) | func ReadUint16(reader io.Reader) (uint16, error) { function WriteUint16 (line 18) | func WriteUint16(writer io.Writer, value uint16) (int, error) { function WriteUint64 (line 25) | func WriteUint64(writer io.Writer, value uint64) (int, error) { FILE: common/serial/serial_test.go function TestUint16Serial (line 14) | func TestUint16Serial(t *testing.T) { function TestUint64Serial (line 28) | func TestUint64Serial(t *testing.T) { function TestReadUint16 (line 42) | func TestReadUint16(t *testing.T) { function BenchmarkReadUint16 (line 62) | func BenchmarkReadUint16(b *testing.B) { function BenchmarkWriteUint64 (line 77) | func BenchmarkWriteUint64(b *testing.B) { FILE: common/serial/string.go function ToString (line 9) | func ToString(v interface{}) string { function Concat (line 29) | func Concat(v ...interface{}) string { FILE: common/serial/string_test.go function TestToString (line 12) | func TestToString(t *testing.T) { function TestConcat (line 31) | func TestConcat(t *testing.T) { function BenchmarkConcat (line 52) | func BenchmarkConcat(b *testing.B) { FILE: common/serial/typed_message.go function ToTypedMessage (line 11) | func ToTypedMessage(message proto.Message) *TypedMessage { function GetMessageType (line 23) | func GetMessageType(message proto.Message) string { function GetInstance (line 28) | func GetInstance(messageType string) (interface{}, error) { method GetInstance (line 37) | func (v *TypedMessage) GetInstance() (proto.Message, error) { FILE: common/serial/typed_message.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type TypedMessage (line 29) | type TypedMessage struct method Reset (line 40) | func (x *TypedMessage) Reset() { method String (line 49) | func (x *TypedMessage) String() string { method ProtoMessage (line 53) | func (*TypedMessage) ProtoMessage() {} method ProtoReflect (line 55) | func (x *TypedMessage) ProtoReflect() protoreflect.Message { method Descriptor (line 68) | func (*TypedMessage) Descriptor() ([]byte, []int) { method GetType (line 72) | func (x *TypedMessage) GetType() string { method GetValue (line 79) | func (x *TypedMessage) GetValue() []byte { function file_common_serial_typed_message_proto_rawDescGZIP (line 110) | func file_common_serial_typed_message_proto_rawDescGZIP() []byte { function init (line 129) | func init() { file_common_serial_typed_message_proto_init() } function file_common_serial_typed_message_proto_init (line 130) | func file_common_serial_typed_message_proto_init() { FILE: common/serial/typed_message_test.go function TestGetInstance (line 9) | func TestGetInstance(t *testing.T) { function TestConvertingNilMessage (line 19) | func TestConvertingNilMessage(t *testing.T) { FILE: common/session/context.go type sessionKey (line 5) | type sessionKey constant idSessionKey (line 8) | idSessionKey sessionKey = iota constant inboundSessionKey (line 9) | inboundSessionKey constant outboundSessionKey (line 10) | outboundSessionKey constant contentSessionKey (line 11) | contentSessionKey constant muxPreferedSessionKey (line 12) | muxPreferedSessionKey constant sockoptSessionKey (line 13) | sockoptSessionKey function ContextWithID (line 17) | func ContextWithID(ctx context.Context, id ID) context.Context { function IDFromContext (line 22) | func IDFromContext(ctx context.Context) ID { function ContextWithInbound (line 29) | func ContextWithInbound(ctx context.Context, inbound *Inbound) context.C... function InboundFromContext (line 33) | func InboundFromContext(ctx context.Context) *Inbound { function ContextWithOutbound (line 40) | func ContextWithOutbound(ctx context.Context, outbound *Outbound) contex... function OutboundFromContext (line 44) | func OutboundFromContext(ctx context.Context) *Outbound { function ContextWithContent (line 51) | func ContextWithContent(ctx context.Context, content *Content) context.C... function ContentFromContext (line 55) | func ContentFromContext(ctx context.Context) *Content { function ContextWithMuxPrefered (line 63) | func ContextWithMuxPrefered(ctx context.Context, forced bool) context.Co... function MuxPreferedFromContext (line 68) | func MuxPreferedFromContext(ctx context.Context) bool { function ContextWithSockopt (line 76) | func ContextWithSockopt(ctx context.Context, s *Sockopt) context.Context { function SockoptFromContext (line 81) | func SockoptFromContext(ctx context.Context) *Sockopt { FILE: common/session/session.go type ID (line 14) | type ID function NewID (line 18) | func NewID() ID { function ExportIDToError (line 29) | func ExportIDToError(ctx context.Context) errors.ExportOption { type Inbound (line 37) | type Inbound struct type Outbound (line 49) | type Outbound struct type SniffingRequest (line 57) | type SniffingRequest struct type Content (line 63) | type Content struct method SetAttribute (line 81) | func (c *Content) SetAttribute(name string, value string) { method Attribute (line 89) | func (c *Content) Attribute(name string) string { type Sockopt (line 75) | type Sockopt struct FILE: common/signal/done/done.go type Instance (line 8) | type Instance struct method Done (line 22) | func (d *Instance) Done() bool { method Wait (line 32) | func (d *Instance) Wait() <-chan struct{} { method Close (line 37) | func (d *Instance) Close() error { function New (line 15) | func New() *Instance { FILE: common/signal/notifier.go type Notifier (line 4) | type Notifier struct method Signal (line 16) | func (n *Notifier) Signal() { method Wait (line 24) | func (n *Notifier) Wait() <-chan struct{} { function NewNotifier (line 9) | func NewNotifier() *Notifier { FILE: common/signal/notifier_test.go function TestNotifierSignal (line 9) | func TestNotifierSignal(t *testing.T) { FILE: common/signal/pubsub/pubsub.go type Subscriber (line 13) | type Subscriber struct method push (line 18) | func (s *Subscriber) push(msg interface{}) { method Wait (line 25) | func (s *Subscriber) Wait() <-chan interface{} { method Close (line 29) | func (s *Subscriber) Close() error { method IsClosed (line 33) | func (s *Subscriber) IsClosed() bool { type Service (line 37) | type Service struct method Cleanup (line 56) | func (s *Service) Cleanup() error { method Subscribe (line 84) | func (s *Service) Subscribe(name string) *Subscriber { method Publish (line 97) | func (s *Service) Publish(name string, message interface{}) { function NewService (line 43) | func NewService() *Service { FILE: common/signal/pubsub/pubsub_test.go function TestPubsub (line 9) | func TestPubsub(t *testing.T) { FILE: common/signal/semaphore/semaphore.go type Instance (line 4) | type Instance struct method Wait (line 20) | func (s *Instance) Wait() <-chan struct{} { method Signal (line 25) | func (s *Instance) Signal() { function New (line 9) | func New(n int) *Instance { FILE: common/signal/timer.go type ActivityUpdater (line 12) | type ActivityUpdater interface type ActivityTimer (line 16) | type ActivityTimer struct method Update (line 23) | func (t *ActivityTimer) Update() { method check (line 30) | func (t *ActivityTimer) check() error { method finish (line 39) | func (t *ActivityTimer) finish() { method SetTimeout (line 53) | func (t *ActivityTimer) SetTimeout(timeout time.Duration) { function CancelAfterInactivity (line 75) | func CancelAfterInactivity(ctx context.Context, cancel context.CancelFun... FILE: common/signal/timer_test.go function TestActivityTimer (line 12) | func TestActivityTimer(t *testing.T) { function TestActivityTimerUpdate (line 22) | func TestActivityTimerUpdate(t *testing.T) { function TestActivityTimerNonBlocking (line 37) | func TestActivityTimerNonBlocking(t *testing.T) { function TestActivityTimerZeroTimeout (line 51) | func TestActivityTimerZeroTimeout(t *testing.T) { FILE: common/stack/bytes.go type TwoBytes (line 6) | type TwoBytes type EightBytes (line 11) | type EightBytes FILE: common/strmatcher/benchmark_test.go function BenchmarkDomainMatcherGroup (line 11) | func BenchmarkDomainMatcherGroup(b *testing.B) { function BenchmarkFullMatcherGroup (line 24) | func BenchmarkFullMatcherGroup(b *testing.B) { function BenchmarkMarchGroup (line 37) | func BenchmarkMarchGroup(b *testing.B) { FILE: common/strmatcher/domain_matcher.go function breakDomain (line 5) | func breakDomain(domain string) []string { type node (line 9) | type node struct type DomainMatcherGroup (line 16) | type DomainMatcherGroup struct method Add (line 20) | func (g *DomainMatcherGroup) Add(domain string, value uint32) { method addMatcher (line 43) | func (g *DomainMatcherGroup) addMatcher(m domainMatcher, value uint32) { method Match (line 47) | func (g *DomainMatcherGroup) Match(domain string) []uint32 { FILE: common/strmatcher/domain_matcher_test.go function TestDomainMatcherGroup (line 10) | func TestDomainMatcherGroup(t *testing.T) { function TestEmptyDomainMatcherGroup (line 70) | func TestEmptyDomainMatcherGroup(t *testing.T) { FILE: common/strmatcher/full_matcher.go type FullMatcherGroup (line 3) | type FullMatcherGroup struct method Add (line 7) | func (g *FullMatcherGroup) Add(domain string, value uint32) { method addMatcher (line 15) | func (g *FullMatcherGroup) addMatcher(m fullMatcher, value uint32) { method Match (line 19) | func (g *FullMatcherGroup) Match(str string) []uint32 { FILE: common/strmatcher/full_matcher_test.go function TestFullMatcherGroup (line 10) | func TestFullMatcherGroup(t *testing.T) { function TestEmptyFullMatcherGroup (line 44) | func TestEmptyFullMatcherGroup(t *testing.T) { FILE: common/strmatcher/matchers.go type fullMatcher (line 8) | type fullMatcher method Match (line 10) | func (m fullMatcher) Match(s string) bool { method String (line 14) | func (m fullMatcher) String() string { type substrMatcher (line 18) | type substrMatcher method Match (line 20) | func (m substrMatcher) Match(s string) bool { method String (line 24) | func (m substrMatcher) String() string { type domainMatcher (line 28) | type domainMatcher method Match (line 30) | func (m domainMatcher) Match(s string) bool { method String (line 38) | func (m domainMatcher) String() string { type regexMatcher (line 42) | type regexMatcher struct method Match (line 46) | func (m *regexMatcher) Match(s string) bool { method String (line 50) | func (m *regexMatcher) String() string { FILE: common/strmatcher/matchers_test.go function TestMatcher (line 10) | func TestMatcher(t *testing.T) { FILE: common/strmatcher/strmatcher.go type Matcher (line 8) | type Matcher interface type Type (line 15) | type Type method New (line 29) | func (t Type) New(pattern string) (Matcher, error) { constant Full (line 19) | Full Type = iota constant Substr (line 21) | Substr constant Domain (line 23) | Domain constant Regex (line 25) | Regex type IndexMatcher (line 51) | type IndexMatcher interface type matcherEntry (line 56) | type matcherEntry struct type MatcherGroup (line 63) | type MatcherGroup struct method Add (line 71) | func (g *MatcherGroup) Add(m Matcher) uint32 { method Match (line 91) | func (g *MatcherGroup) Match(pattern string) []uint32 { method Size (line 104) | func (g *MatcherGroup) Size() uint32 { FILE: common/strmatcher/strmatcher_test.go function TestMatcherGroup (line 12) | func TestMatcherGroup(t *testing.T) { FILE: common/task/common.go function Close (line 6) | func Close(v interface{}) func() error { FILE: common/task/periodic.go type Periodic (line 9) | type Periodic struct method hasClosed (line 20) | func (t *Periodic) hasClosed() bool { method checkedExecute (line 27) | func (t *Periodic) checkedExecute() error { method Start (line 54) | func (t *Periodic) Start() error { method Close (line 74) | func (t *Periodic) Close() error { FILE: common/task/periodic_test.go function TestPeriodicTaskStop (line 11) | func TestPeriodicTaskStop(t *testing.T) { FILE: common/task/task.go function OnSuccess (line 10) | func OnSuccess(f func() error, g func() error) func() error { function Run (line 20) | func Run(ctx context.Context, tasks ...func() error) error { FILE: common/task/task_test.go function TestExecuteParallel (line 16) | func TestExecuteParallel(t *testing.T) { function TestExecuteParallelContextCancel (line 31) | func TestExecuteParallelContextCancel(t *testing.T) { function BenchmarkExecuteOne (line 50) | func BenchmarkExecuteOne(b *testing.B) { function BenchmarkExecuteTwo (line 59) | func BenchmarkExecuteTwo(b *testing.B) { FILE: common/type.go type ConfigCreator (line 9) | type ConfigCreator function RegisterConfig (line 16) | func RegisterConfig(config interface{}, configCreator ConfigCreator) err... function CreateObject (line 26) | func CreateObject(ctx context.Context, config interface{}) (interface{},... FILE: common/type_test.go type TConfig (line 10) | type TConfig struct type YConfig (line 14) | type YConfig struct function TestObjectCreation (line 18) | func TestObjectCreation(t *testing.T) { FILE: common/uuid/uuid.go type UUID (line 16) | type UUID method String (line 19) | func (u *UUID) String() string { method Bytes (line 33) | func (u *UUID) Bytes() []byte { method Equals (line 38) | func (u *UUID) Equals(another *UUID) bool { function New (line 49) | func New() UUID { function ParseBytes (line 56) | func ParseBytes(b []byte) (UUID, error) { function ParseString (line 66) | func ParseString(str string) (UUID, error) { FILE: common/uuid/uuid_test.go function TestParseBytes (line 12) | func TestParseBytes(t *testing.T) { function TestParseString (line 28) | func TestParseString(t *testing.T) { function TestNewUUID (line 49) | func TestNewUUID(t *testing.T) { function TestRandom (line 62) | func TestRandom(t *testing.T) { function TestEquals (line 71) | func TestEquals(t *testing.T) { FILE: config.go type ConfigFormat (line 17) | type ConfigFormat struct type ConfigLoader (line 24) | type ConfigLoader function RegisterConfigLoader (line 32) | func RegisterConfigLoader(format *ConfigFormat) error { function getExtension (line 50) | func getExtension(filename string) string { function LoadConfig (line 62) | func LoadConfig(formatName string, filename string, input interface{}) (... function loadProtobufConfig (line 77) | func loadProtobufConfig(data []byte) (*Config, error) { function init (line 85) | func init() { FILE: config.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 28) | _ = proto.ProtoPackageIsVersion4 type Config (line 32) | type Config struct method Reset (line 58) | func (x *Config) Reset() { method String (line 67) | func (x *Config) String() string { method ProtoMessage (line 71) | func (*Config) ProtoMessage() {} method ProtoReflect (line 73) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 86) | func (*Config) Descriptor() ([]byte, []int) { method GetInbound (line 90) | func (x *Config) GetInbound() []*InboundHandlerConfig { method GetOutbound (line 97) | func (x *Config) GetOutbound() []*OutboundHandlerConfig { method GetApp (line 104) | func (x *Config) GetApp() []*serial.TypedMessage { method GetTransport (line 112) | func (x *Config) GetTransport() *transport.Config { method GetExtension (line 119) | func (x *Config) GetExtension() []*serial.TypedMessage { type InboundHandlerConfig (line 127) | type InboundHandlerConfig struct method Reset (line 141) | func (x *InboundHandlerConfig) Reset() { method String (line 150) | func (x *InboundHandlerConfig) String() string { method ProtoMessage (line 154) | func (*InboundHandlerConfig) ProtoMessage() {} method ProtoReflect (line 156) | func (x *InboundHandlerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 169) | func (*InboundHandlerConfig) Descriptor() ([]byte, []int) { method GetTag (line 173) | func (x *InboundHandlerConfig) GetTag() string { method GetReceiverSettings (line 180) | func (x *InboundHandlerConfig) GetReceiverSettings() *serial.TypedMess... method GetProxySettings (line 187) | func (x *InboundHandlerConfig) GetProxySettings() *serial.TypedMessage { type OutboundHandlerConfig (line 195) | type OutboundHandlerConfig struct method Reset (line 212) | func (x *OutboundHandlerConfig) Reset() { method String (line 221) | func (x *OutboundHandlerConfig) String() string { method ProtoMessage (line 225) | func (*OutboundHandlerConfig) ProtoMessage() {} method ProtoReflect (line 227) | func (x *OutboundHandlerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 240) | func (*OutboundHandlerConfig) Descriptor() ([]byte, []int) { method GetTag (line 244) | func (x *OutboundHandlerConfig) GetTag() string { method GetSenderSettings (line 251) | func (x *OutboundHandlerConfig) GetSenderSettings() *serial.TypedMessa... method GetProxySettings (line 258) | func (x *OutboundHandlerConfig) GetProxySettings() *serial.TypedMessage { method GetExpire (line 265) | func (x *OutboundHandlerConfig) GetExpire() int64 { method GetComment (line 272) | func (x *OutboundHandlerConfig) GetComment() string { function file_config_proto_rawDescGZIP (line 348) | func file_config_proto_rawDescGZIP() []byte { function init (line 380) | func init() { file_config_proto_init() } function file_config_proto_init (line 381) | func file_config_proto_init() { FILE: context.go type V2rayKey (line 10) | type V2rayKey constant v2rayKey (line 12) | v2rayKey V2rayKey = 1 function FromContext (line 15) | func FromContext(ctx context.Context) *Instance { function MustFromContext (line 23) | func MustFromContext(ctx context.Context) *Instance { FILE: context_test.go function TestContextPanic (line 10) | func TestContextPanic(t *testing.T) { FILE: core.go function Version (line 29) | func Version() string { function VersionStatement (line 34) | func VersionStatement() []string { FILE: errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: features/dns/client.go type Client (line 13) | type Client interface type IPv4Lookup (line 23) | type IPv4Lookup interface type IPv6Lookup (line 30) | type IPv6Lookup interface function ClientType (line 37) | func ClientType() interface{} { type RCodeError (line 44) | type RCodeError method Error (line 46) | func (e RCodeError) Error() string { function RCodeFromError (line 50) | func RCodeFromError(err error) uint16 { FILE: features/dns/localdns/client.go type Client (line 9) | type Client struct method Type (line 12) | func (*Client) Type() interface{} { method Start (line 17) | func (*Client) Start() error { return nil } method Close (line 20) | func (*Client) Close() error { return nil } method LookupIP (line 23) | func (*Client) LookupIP(host string) ([]net.IP, error) { method LookupIPv4 (line 42) | func (c *Client) LookupIPv4(host string) ([]net.IP, error) { method LookupIPv6 (line 60) | func (c *Client) LookupIPv6(host string) ([]net.IP, error) { function New (line 78) | func New() *Client { FILE: features/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: features/feature.go type Feature (line 9) | type Feature interface function PrintDeprecatedFeatureWarning (line 15) | func PrintDeprecatedFeatureWarning(feature string) { FILE: features/inbound/inbound.go type Handler (line 14) | type Handler interface type Manager (line 26) | type Manager interface function ManagerType (line 40) | func ManagerType() interface{} { FILE: features/outbound/outbound.go type Handler (line 14) | type Handler interface type HandlerSelector (line 20) | type HandlerSelector interface type Manager (line 27) | type Manager interface function ManagerType (line 43) | func ManagerType() interface{} { FILE: features/policy/default.go type DefaultManager (line 8) | type DefaultManager struct method Type (line 11) | func (DefaultManager) Type() interface{} { method ForLevel (line 16) | func (DefaultManager) ForLevel(level uint32) Session { method ForSystem (line 25) | func (DefaultManager) ForSystem() System { method Start (line 30) | func (DefaultManager) Start() error { method Close (line 35) | func (DefaultManager) Close() error { FILE: features/policy/policy.go type Timeout (line 13) | type Timeout struct type Stats (line 25) | type Stats struct type Buffer (line 33) | type Buffer struct type SystemStats (line 39) | type SystemStats struct type System (line 51) | type System struct type Session (line 57) | type Session struct type Manager (line 66) | type Manager interface function ManagerType (line 79) | func ManagerType() interface{} { function init (line 85) | func init() { function defaultBufferPolicy (line 110) | func defaultBufferPolicy() Buffer { function SessionDefault (line 117) | func SessionDefault() Session { type policyKey (line 135) | type policyKey constant bufferPolicyKey (line 138) | bufferPolicyKey policyKey = 0 function ContextWithBufferPolicy (line 141) | func ContextWithBufferPolicy(ctx context.Context, p Buffer) context.Cont... function BufferPolicyFromContext (line 145) | func BufferPolicyFromContext(ctx context.Context) Buffer { FILE: features/routing/context.go type Context (line 10) | type Context interface FILE: features/routing/dispatcher.go type Dispatcher (line 15) | type Dispatcher interface function DispatcherType (line 25) | func DispatcherType() interface{} { FILE: features/routing/dns/context.go type ResolvableContext (line 12) | type ResolvableContext struct method GetTargetIPs (line 19) | func (ctx *ResolvableContext) GetTargetIPs() []net.IP { function ContextWithDNSClient (line 42) | func ContextWithDNSClient(ctx routing.Context, client dns.Client) routin... FILE: features/routing/dns/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: features/routing/router.go type Router (line 11) | type Router interface type Route (line 21) | type Route interface function RouterType (line 35) | func RouterType() interface{} { type DefaultRouter (line 40) | type DefaultRouter struct method Type (line 43) | func (DefaultRouter) Type() interface{} { method PickRoute (line 48) | func (DefaultRouter) PickRoute(ctx Context) (Route, error) { method Start (line 53) | func (DefaultRouter) Start() error { method Close (line 58) | func (DefaultRouter) Close() error { FILE: features/routing/session/context.go type Context (line 12) | type Context struct method GetInboundTag (line 19) | func (ctx *Context) GetInboundTag() string { method GetSourceIPs (line 27) | func (ctx *Context) GetSourceIPs() []net.IP { method GetSourcePort (line 40) | func (ctx *Context) GetSourcePort() net.Port { method GetTargetIPs (line 48) | func (ctx *Context) GetTargetIPs() []net.IP { method GetTargetPort (line 61) | func (ctx *Context) GetTargetPort() net.Port { method GetTargetDomain (line 69) | func (ctx *Context) GetTargetDomain() string { method GetNetwork (line 81) | func (ctx *Context) GetNetwork() net.Network { method GetProtocol (line 89) | func (ctx *Context) GetProtocol() string { method GetUser (line 97) | func (ctx *Context) GetUser() string { method GetAttributes (line 105) | func (ctx *Context) GetAttributes() map[string]string { function AsRoutingContext (line 113) | func AsRoutingContext(ctx context.Context) routing.Context { FILE: features/stats/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: features/stats/stats.go type Counter (line 15) | type Counter interface type Channel (line 27) | type Channel interface function SubscribeRunnableChannel (line 41) | func SubscribeRunnableChannel(c Channel) (chan interface{}, error) { function UnsubscribeClosableChannel (line 51) | func UnsubscribeClosableChannel(c Channel, sub chan interface{}) error { type Manager (line 64) | type Manager interface function GetOrRegisterCounter (line 83) | func GetOrRegisterCounter(m Manager, name string) (Counter, error) { function GetOrRegisterChannel (line 93) | func GetOrRegisterChannel(m Manager, name string) (Channel, error) { function ManagerType (line 105) | func ManagerType() interface{} { type NoopManager (line 110) | type NoopManager struct method Type (line 113) | func (NoopManager) Type() interface{} { method RegisterCounter (line 118) | func (NoopManager) RegisterCounter(string) (Counter, error) { method UnregisterCounter (line 123) | func (NoopManager) UnregisterCounter(string) error { method GetCounter (line 128) | func (NoopManager) GetCounter(string) Counter { method RegisterChannel (line 133) | func (NoopManager) RegisterChannel(string) (Channel, error) { method UnregisterChannel (line 138) | func (NoopManager) UnregisterChannel(string) error { method GetChannel (line 143) | func (NoopManager) GetChannel(string) Channel { method Start (line 148) | func (NoopManager) Start() error { return nil } method Close (line 151) | func (NoopManager) Close() error { return nil } FILE: functions.go function CreateObject (line 16) | func CreateObject(v *Instance, config interface{}) (interface{}, error) { function StartInstance (line 28) | func StartInstance(configFormat string, configBytes []byte) (*Instance, ... function Dial (line 49) | func Dial(ctx context.Context, v *Instance, dest net.Destination) (net.C... function DialUDP (line 73) | func DialUDP(ctx context.Context, v *Instance) (net.PacketConn, error) { FILE: functions_test.go function xor (line 24) | func xor(b []byte) []byte { function xor2 (line 32) | func xor2(b []byte) []byte { function TestV2RayDial (line 40) | func TestV2RayDial(t *testing.T) { function TestV2RayDialUDPConn (line 90) | func TestV2RayDialUDPConn(t *testing.T) { function TestV2RayDialUDP (line 150) | func TestV2RayDialUDP(t *testing.T) { FILE: infra/conf/api.go type ApiConfig (line 13) | type ApiConfig struct method Build (line 18) | func (c *ApiConfig) Build() (*commander.Config, error) { FILE: infra/conf/blackhole.go type NoneResponse (line 12) | type NoneResponse struct method Build (line 14) | func (*NoneResponse) Build() (proto.Message, error) { type HttpResponse (line 18) | type HttpResponse struct method Build (line 20) | func (*HttpResponse) Build() (proto.Message, error) { type BlackholeConfig (line 24) | type BlackholeConfig struct method Build (line 28) | func (v *BlackholeConfig) Build() (proto.Message, error) { FILE: infra/conf/blackhole_test.go function TestHTTPResponseJSON (line 11) | func TestHTTPResponseJSON(t *testing.T) { FILE: infra/conf/buildable.go type Buildable (line 5) | type Buildable interface FILE: infra/conf/command/command.go type ConfigCommand (line 14) | type ConfigCommand struct method Name (line 16) | func (c *ConfigCommand) Name() string { method Description (line 20) | func (c *ConfigCommand) Description() control.Description { method Execute (line 29) | func (c *ConfigCommand) Execute(args []string) error { function init (line 46) | func init() { FILE: infra/conf/command/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: infra/conf/common.go type StringList (line 12) | type StringList method Len (line 19) | func (v StringList) Len() int { method UnmarshalJSON (line 23) | func (v *StringList) UnmarshalJSON(data []byte) error { function NewStringList (line 14) | func NewStringList(raw []string) *StringList { type Address (line 39) | type Address struct method UnmarshalJSON (line 43) | func (v *Address) UnmarshalJSON(data []byte) error { method Build (line 53) | func (v *Address) Build() *net.IPOrDomain { type Network (line 57) | type Network method Build (line 59) | func (v Network) Build() net.Network { type NetworkList (line 70) | type NetworkList method UnmarshalJSON (line 72) | func (v *NetworkList) UnmarshalJSON(data []byte) error { method Build (line 93) | func (v *NetworkList) Build() []net.Network { function parseIntPort (line 105) | func parseIntPort(data []byte) (net.Port, error) { function parseStringPort (line 114) | func parseStringPort(s string) (net.Port, net.Port, error) { function parseJSONStringPort (line 140) | func parseJSONStringPort(data []byte) (net.Port, net.Port, error) { type PortRange (line 149) | type PortRange struct method Build (line 154) | func (v *PortRange) Build() *net.PortRange { method UnmarshalJSON (line 162) | func (v *PortRange) UnmarshalJSON(data []byte) error { type PortList (line 183) | type PortList struct method Build (line 187) | func (list *PortList) Build() *net.PortList { method UnmarshalJSON (line 196) | func (list *PortList) UnmarshalJSON(data []byte) error { type User (line 229) | type User struct method Build (line 234) | func (v *User) Build() *protocol.User { FILE: infra/conf/common_test.go function TestStringListUnmarshalError (line 17) | func TestStringListUnmarshalError(t *testing.T) { function TestStringListLen (line 26) | func TestStringListLen(t *testing.T) { function TestIPParsing (line 36) | func TestIPParsing(t *testing.T) { function TestDomainParsing (line 46) | func TestDomainParsing(t *testing.T) { function TestURLParsing (line 55) | func TestURLParsing(t *testing.T) { function TestInvalidAddressJson (line 74) | func TestInvalidAddressJson(t *testing.T) { function TestStringNetwork (line 83) | func TestStringNetwork(t *testing.T) { function TestArrayNetworkList (line 91) | func TestArrayNetworkList(t *testing.T) { function TestStringNetworkList (line 104) | func TestStringNetworkList(t *testing.T) { function TestInvalidNetworkJson (line 117) | func TestInvalidNetworkJson(t *testing.T) { function TestIntPort (line 125) | func TestIntPort(t *testing.T) { function TestOverRangeIntPort (line 136) | func TestOverRangeIntPort(t *testing.T) { function TestEnvPort (line 149) | func TestEnvPort(t *testing.T) { function TestSingleStringPort (line 162) | func TestSingleStringPort(t *testing.T) { function TestStringPairPort (line 173) | func TestStringPairPort(t *testing.T) { function TestOverRangeStringPort (line 184) | func TestOverRangeStringPort(t *testing.T) { function TestUserParsing (line 207) | func TestUserParsing(t *testing.T) { function TestInvalidUserJson (line 225) | func TestInvalidUserJson(t *testing.T) { FILE: infra/conf/dns.go type NameServerConfig (line 13) | type NameServerConfig struct method UnmarshalJSON (line 20) | func (c *NameServerConfig) UnmarshalJSON(data []byte) error { method Build (line 59) | func (c *NameServerConfig) Build() (*dns.NameServer, error) { function toDomainMatchingType (line 44) | func toDomainMatchingType(t router.Domain_Type) dns.DomainMatchingType { type DnsConfig (line 110) | type DnsConfig struct method Build (line 130) | func (c *DnsConfig) Build() (*dns.Config, error) { function getHostMapping (line 117) | func getHostMapping(addr *Address) *dns.Config_HostMapping { FILE: infra/conf/dns_proxy.go type DnsOutboundConfig (line 9) | type DnsOutboundConfig struct method Build (line 15) | func (c *DnsOutboundConfig) Build() (proto.Message, error) { FILE: infra/conf/dns_proxy_test.go function TestDnsProxyConfig (line 11) | func TestDnsProxyConfig(t *testing.T) { FILE: infra/conf/dns_test.go function init (line 19) | func init() { function TestDnsConfigParsing (line 48) | func TestDnsConfigParsing(t *testing.T) { FILE: infra/conf/dokodemo.go type DokodemoConfig (line 8) | type DokodemoConfig struct method Build (line 17) | func (v *DokodemoConfig) Build() (proto.Message, error) { FILE: infra/conf/dokodemo_test.go function TestDokodemoConfig (line 11) | func TestDokodemoConfig(t *testing.T) { FILE: infra/conf/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: infra/conf/freedom.go type FreedomConfig (line 13) | type FreedomConfig struct method Build (line 21) | func (c *FreedomConfig) Build() (proto.Message, error) { FILE: infra/conf/freedom_test.go function TestFreedomConfig (line 12) | func TestFreedomConfig(t *testing.T) { FILE: infra/conf/general_test.go function loadJSON (line 12) | func loadJSON(creator func() Buildable) func(string) (proto.Message, err... type TestCase (line 22) | type TestCase struct function runMultiTestCase (line 28) | func runMultiTestCase(t *testing.T, testCases []TestCase) { FILE: infra/conf/http.go type HttpAccount (line 12) | type HttpAccount struct method Build (line 17) | func (v *HttpAccount) Build() *http.Account { type HttpServerConfig (line 24) | type HttpServerConfig struct method Build (line 31) | func (c *HttpServerConfig) Build() (proto.Message, error) { type HttpRemoteConfig (line 48) | type HttpRemoteConfig struct type HttpClientConfig (line 53) | type HttpClientConfig struct method Build (line 57) | func (v *HttpClientConfig) Build() (proto.Message, error) { FILE: infra/conf/http_test.go function TestHttpServerConfig (line 10) | func TestHttpServerConfig(t *testing.T) { FILE: infra/conf/json/reader.go type State (line 10) | type State constant StateContent (line 13) | StateContent State = iota constant StateEscape (line 14) | StateEscape constant StateDoubleQuote (line 15) | StateDoubleQuote constant StateDoubleQuoteEscape (line 16) | StateDoubleQuoteEscape constant StateSingleQuote (line 17) | StateSingleQuote constant StateSingleQuoteEscape (line 18) | StateSingleQuoteEscape constant StateComment (line 19) | StateComment constant StateSlash (line 20) | StateSlash constant StateMultilineComment (line 21) | StateMultilineComment constant StateMultilineCommentStar (line 22) | StateMultilineCommentStar type Reader (line 27) | type Reader struct method Read (line 35) | func (v *Reader) Read(b []byte) (int, error) { FILE: infra/conf/json/reader_test.go function TestReader (line 14) | func TestReader(t *testing.T) { function TestReader1 (line 58) | func TestReader1(t *testing.T) { FILE: infra/conf/loader.go type ConfigCreator (line 8) | type ConfigCreator type ConfigCreatorCache (line 10) | type ConfigCreatorCache method RegisterCreator (line 12) | func (v ConfigCreatorCache) RegisterCreator(id string, creator ConfigC... method CreateConfig (line 21) | func (v ConfigCreatorCache) CreateConfig(id string) (interface{}, erro... type JSONConfigLoader (line 29) | type JSONConfigLoader struct method LoadWithID (line 43) | func (v *JSONConfigLoader) LoadWithID(raw []byte, id string) (interfac... method Load (line 55) | func (v *JSONConfigLoader) Load(raw []byte) (interface{}, string, erro... function NewJSONConfigLoader (line 35) | func NewJSONConfigLoader(cache ConfigCreatorCache, idKey string, configK... FILE: infra/conf/log.go function DefaultLogConfig (line 10) | func DefaultLogConfig() *log.Config { type LogConfig (line 18) | type LogConfig struct method Build (line 24) | func (v *LogConfig) Build() *log.Config { FILE: infra/conf/mtproto.go type MTProtoAccount (line 14) | type MTProtoAccount struct method Build (line 19) | func (a *MTProtoAccount) Build() (*mtproto.Account, error) { type MTProtoServerConfig (line 32) | type MTProtoServerConfig struct method Build (line 36) | func (c *MTProtoServerConfig) Build() (proto.Message, error) { type MTProtoClientConfig (line 63) | type MTProtoClientConfig struct method Build (line 66) | func (c *MTProtoClientConfig) Build() (proto.Message, error) { FILE: infra/conf/mtproto_test.go function TestMTProtoServerConfig (line 12) | func TestMTProtoServerConfig(t *testing.T) { FILE: infra/conf/policy.go type Policy (line 7) | type Policy struct method Build (line 17) | func (t *Policy) Build() (*policy.Policy, error) { type SystemPolicy (line 53) | type SystemPolicy struct method Build (line 60) | func (p *SystemPolicy) Build() (*policy.SystemPolicy, error) { type PolicyConfig (line 71) | type PolicyConfig struct method Build (line 76) | func (c *PolicyConfig) Build() (*policy.Config, error) { FILE: infra/conf/policy_test.go function TestBufferSize (line 10) | func TestBufferSize(t *testing.T) { FILE: infra/conf/reverse.go type BridgeConfig (line 8) | type BridgeConfig struct method Build (line 13) | func (c *BridgeConfig) Build() (*reverse.BridgeConfig, error) { type PortalConfig (line 20) | type PortalConfig struct method Build (line 25) | func (c *PortalConfig) Build() (*reverse.PortalConfig, error) { type ReverseConfig (line 32) | type ReverseConfig struct method Build (line 37) | func (c *ReverseConfig) Build() (proto.Message, error) { FILE: infra/conf/reverse_test.go function TestReverseConfig (line 10) | func TestReverseConfig(t *testing.T) { FILE: infra/conf/router.go type RouterRulesConfig (line 15) | type RouterRulesConfig struct type BalancingRule (line 20) | type BalancingRule struct method Build (line 25) | func (r *BalancingRule) Build() (*router.BalancingRule, error) { type RouterConfig (line 39) | type RouterConfig struct method getDomainStrategy (line 46) | func (c *RouterConfig) getDomainStrategy() router.Config_DomainStrategy { method Build (line 66) | func (c *RouterConfig) Build() (*router.Config, error) { type RouterRule (line 91) | type RouterRule struct function ParseIP (line 97) | func ParseIP(s string) (*router.CIDR, error) { function loadGeoIP (line 145) | func loadGeoIP(country string) ([]*router.CIDR, error) { function loadIP (line 149) | func loadIP(filename, country string) ([]*router.CIDR, error) { function loadSite (line 168) | func loadSite(filename, country string) ([]*router.Domain, error) { type AttributeMatcher (line 187) | type AttributeMatcher interface type BooleanMatcher (line 191) | type BooleanMatcher method Match (line 193) | func (m BooleanMatcher) Match(domain *router.Domain) bool { type AttributeList (line 202) | type AttributeList struct method Match (line 206) | func (al *AttributeList) Match(domain *router.Domain) bool { method IsEmpty (line 215) | func (al *AttributeList) IsEmpty() bool { function parseAttrs (line 219) | func parseAttrs(attrs []string) *AttributeList { function loadGeositeWithAttr (line 228) | func loadGeositeWithAttr(file string, siteWithAttr string) ([]*router.Do... function parseDomainRule (line 254) | func parseDomainRule(domain string) ([]*router.Domain, error) { function toCidrList (line 319) | func toCidrList(ips StringList) ([]*router.GeoIP, error) { function parseFieldRule (line 385) | func parseFieldRule(msg json.RawMessage) (*router.RoutingRule, error) { function ParseRule (line 481) | func ParseRule(msg json.RawMessage) (*router.RoutingRule, error) { function parseChinaIPRule (line 511) | func parseChinaIPRule(data []byte) (*router.RoutingRule, error) { function parseChinaSitesRule (line 529) | func parseChinaSitesRule(data []byte) (*router.RoutingRule, error) { FILE: infra/conf/router_test.go function TestRouterConfig (line 14) | func TestRouterConfig(t *testing.T) { FILE: infra/conf/serial/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: infra/conf/serial/loader.go type offset (line 14) | type offset struct function findOffset (line 19) | func findOffset(b []byte, o int) *offset { function DecodeJSONConfig (line 43) | func DecodeJSONConfig(reader io.Reader) (*conf.Config, error) { function LoadJSONConfig (line 70) | func LoadJSONConfig(reader io.Reader) (*core.Config, error) { FILE: infra/conf/serial/loader_test.go function TestLoaderError (line 11) | func TestLoaderError(t *testing.T) { FILE: infra/conf/shadowsocks.go function cipherFromString (line 13) | func cipherFromString(c string) shadowsocks.CipherType { type ShadowsocksServerConfig (line 36) | type ShadowsocksServerConfig struct method Build (line 45) | func (v *ShadowsocksServerConfig) Build() (proto.Message, error) { type ShadowsocksServerTarget (line 70) | type ShadowsocksServerTarget struct type ShadowsocksClientConfig (line 80) | type ShadowsocksClientConfig struct method Build (line 84) | func (v *ShadowsocksClientConfig) Build() (proto.Message, error) { FILE: infra/conf/shadowsocks_test.go function TestShadowsocksServerConfigParsing (line 13) | func TestShadowsocksServerConfigParsing(t *testing.T) { FILE: infra/conf/socks.go type SocksAccount (line 12) | type SocksAccount struct method Build (line 17) | func (v *SocksAccount) Build() *socks.Account { constant AuthMethodNoAuth (line 25) | AuthMethodNoAuth = "noauth" constant AuthMethodUserPass (line 26) | AuthMethodUserPass = "password" type SocksServerConfig (line 29) | type SocksServerConfig struct method Build (line 38) | func (v *SocksServerConfig) Build() (proto.Message, error) { type SocksRemoteConfig (line 67) | type SocksRemoteConfig struct type SocksClientConfig (line 72) | type SocksClientConfig struct method Build (line 76) | func (v *SocksClientConfig) Build() (proto.Message, error) { FILE: infra/conf/socks_test.go function TestSocksInboundConfig (line 13) | func TestSocksInboundConfig(t *testing.T) { function TestSocksOutboundConfig (line 52) | func TestSocksOutboundConfig(t *testing.T) { FILE: infra/conf/transport.go type TransportConfig (line 9) | type TransportConfig struct method Build (line 19) | func (c *TransportConfig) Build() (*transport.Config, error) { FILE: infra/conf/transport_authenticators.go type NoOpAuthenticator (line 17) | type NoOpAuthenticator struct method Build (line 19) | func (NoOpAuthenticator) Build() (proto.Message, error) { type NoOpConnectionAuthenticator (line 23) | type NoOpConnectionAuthenticator struct method Build (line 25) | func (NoOpConnectionAuthenticator) Build() (proto.Message, error) { type SRTPAuthenticator (line 29) | type SRTPAuthenticator struct method Build (line 31) | func (SRTPAuthenticator) Build() (proto.Message, error) { type UTPAuthenticator (line 35) | type UTPAuthenticator struct method Build (line 37) | func (UTPAuthenticator) Build() (proto.Message, error) { type WechatVideoAuthenticator (line 41) | type WechatVideoAuthenticator struct method Build (line 43) | func (WechatVideoAuthenticator) Build() (proto.Message, error) { type WireguardAuthenticator (line 47) | type WireguardAuthenticator struct method Build (line 49) | func (WireguardAuthenticator) Build() (proto.Message, error) { type DTLSAuthenticator (line 53) | type DTLSAuthenticator struct method Build (line 55) | func (DTLSAuthenticator) Build() (proto.Message, error) { type HTTPAuthenticatorRequest (line 59) | type HTTPAuthenticatorRequest struct method Build (line 75) | func (v *HTTPAuthenticatorRequest) Build() (*http.RequestConfig, error) { function sortMapKeys (line 66) | func sortMapKeys(m map[string]*StringList) []string { type HTTPAuthenticatorResponse (line 135) | type HTTPAuthenticatorResponse struct method Build (line 142) | func (v *HTTPAuthenticatorResponse) Build() (*http.ResponseConfig, err... type HTTPAuthenticator (line 203) | type HTTPAuthenticator struct method Build (line 208) | func (v *HTTPAuthenticator) Build() (proto.Message, error) { FILE: infra/conf/transport_internet.go type KCPConfig (line 38) | type KCPConfig struct method Build (line 51) | func (c *KCPConfig) Build() (proto.Message, error) { type TCPConfig (line 112) | type TCPConfig struct method Build (line 118) | func (c *TCPConfig) Build() (proto.Message, error) { type WebSocketConfig (line 137) | type WebSocketConfig struct method Build (line 145) | func (c *WebSocketConfig) Build() (proto.Message, error) { type HTTPConfig (line 167) | type HTTPConfig struct method Build (line 173) | func (c *HTTPConfig) Build() (proto.Message, error) { type QUICConfig (line 183) | type QUICConfig struct method Build (line 190) | func (c *QUICConfig) Build() (proto.Message, error) { type DomainSocketConfig (line 224) | type DomainSocketConfig struct method Build (line 232) | func (c *DomainSocketConfig) Build() (proto.Message, error) { function readFileOrString (line 241) | func readFileOrString(f string, s []string) ([]byte, error) { type TLSCertConfig (line 251) | type TLSCertConfig struct method Build (line 260) | func (c *TLSCertConfig) Build() (*tls.Certificate, error) { type TLSConfig (line 291) | type TLSConfig struct method Build (line 302) | func (c *TLSConfig) Build() (proto.Message, error) { type XTLSCertConfig (line 326) | type XTLSCertConfig struct method Build (line 335) | func (c *XTLSCertConfig) Build() (*xtls.Certificate, error) { type XTLSConfig (line 366) | type XTLSConfig struct method Build (line 377) | func (c *XTLSConfig) Build() (proto.Message, error) { type TransportProtocol (line 401) | type TransportProtocol method Build (line 404) | func (p TransportProtocol) Build() (string, error) { type SocketConfig (line 423) | type SocketConfig struct method Build (line 430) | func (c *SocketConfig) Build() (*internet.SocketConfig, error) { type StreamConfig (line 456) | type StreamConfig struct method Build (line 471) | func (c *StreamConfig) Build() (*internet.StreamConfig, error) { type ProxyConfig (line 587) | type ProxyConfig struct method Build (line 592) | func (v *ProxyConfig) Build() (*internet.ProxyConfig, error) { FILE: infra/conf/transport_test.go function TestSocketConfig (line 22) | func TestSocketConfig(t *testing.T) { function TestTransportConfig (line 48) | func TestTransportConfig(t *testing.T) { FILE: infra/conf/trojan.go type TrojanServerTarget (line 18) | type TrojanServerTarget struct type TrojanClientConfig (line 27) | type TrojanClientConfig struct method Build (line 32) | func (c *TrojanClientConfig) Build() (proto.Message, error) { type TrojanInboundFallback (line 74) | type TrojanInboundFallback struct type TrojanUserConfig (line 83) | type TrojanUserConfig struct type TrojanServerConfig (line 90) | type TrojanServerConfig struct method Build (line 97) | func (c *TrojanServerConfig) Build() (proto.Message, error) { FILE: infra/conf/v2ray.go function toProtocolList (line 45) | func toProtocolList(s []string) ([]proxyman.KnownProtocols, error) { type SniffingConfig (line 60) | type SniffingConfig struct method Build (line 66) | func (c *SniffingConfig) Build() (*proxyman.SniffingConfig, error) { type MuxConfig (line 87) | type MuxConfig struct method Build (line 93) | func (m *MuxConfig) Build() *proxyman.MultiplexingConfig { type InboundDetourAllocationConfig (line 109) | type InboundDetourAllocationConfig struct method Build (line 116) | func (c *InboundDetourAllocationConfig) Build() (*proxyman.AllocationS... type InboundDetourConfig (line 143) | type InboundDetourConfig struct method Build (line 156) | func (c *InboundDetourConfig) Build() (*core.InboundHandlerConfig, err... type OutboundDetourConfig (line 234) | type OutboundDetourConfig struct method Build (line 245) | func (c *OutboundDetourConfig) Build() (*core.OutboundHandlerConfig, e... type StatsConfig (line 307) | type StatsConfig struct method Build (line 310) | func (c *StatsConfig) Build() (*stats.Config, error) { type Config (line 314) | type Config struct method findInboundTag (line 332) | func (c *Config) findInboundTag(tag string) int { method findOutboundTag (line 343) | func (c *Config) findOutboundTag(tag string) int { method Override (line 355) | func (c *Config) Override(o *Config, fn string) { method Build (line 454) | func (c *Config) Build() (*core.Config, error) { function applyTransportConfig (line 435) | func applyTransportConfig(s *StreamConfig, t *TransportConfig) { FILE: infra/conf/v2ray_test.go function TestV2RayConfig (line 32) | func TestV2RayConfig(t *testing.T) { function TestMuxConfig_Build (line 343) | func TestMuxConfig_Build(t *testing.T) { function TestConfig_Override (line 374) | func TestConfig_Override(t *testing.T) { FILE: infra/conf/vless.go type VLessInboundFallback (line 19) | type VLessInboundFallback struct type VLessInboundConfig (line 27) | type VLessInboundConfig struct method Build (line 35) | func (c *VLessInboundConfig) Build() (proto.Message, error) { type VLessOutboundVnext (line 133) | type VLessOutboundVnext struct type VLessOutboundConfig (line 139) | type VLessOutboundConfig struct method Build (line 144) | func (c *VLessOutboundConfig) Build() (proto.Message, error) { FILE: infra/conf/vless_test.go function TestVLessOutbound (line 15) | func TestVLessOutbound(t *testing.T) { function TestVLessInbound (line 63) | func TestVLessInbound(t *testing.T) { FILE: infra/conf/vmess.go type VMessAccount (line 16) | type VMessAccount struct method Build (line 23) | func (a *VMessAccount) Build() *vmess.Account { type VMessDetourConfig (line 46) | type VMessDetourConfig struct method Build (line 51) | func (c *VMessDetourConfig) Build() *inbound.DetourConfig { type FeaturesConfig (line 57) | type FeaturesConfig struct type VMessDefaultConfig (line 61) | type VMessDefaultConfig struct method Build (line 67) | func (c *VMessDefaultConfig) Build() *inbound.DefaultConfig { type VMessInboundConfig (line 77) | type VMessInboundConfig struct method Build (line 86) | func (c *VMessInboundConfig) Build() (proto.Message, error) { type VMessOutboundTarget (line 118) | type VMessOutboundTarget struct type VMessOutboundConfig (line 123) | type VMessOutboundConfig struct method Build (line 128) | func (c *VMessOutboundConfig) Build() (proto.Message, error) { FILE: infra/conf/vmess_test.go function TestVMessOutbound (line 15) | func TestVMessOutbound(t *testing.T) { function TestVMessInbound (line 65) | func TestVMessInbound(t *testing.T) { FILE: infra/control/api.go type ApiCommand (line 19) | type ApiCommand struct method Name (line 21) | func (c *ApiCommand) Name() string { method Description (line 25) | func (c *ApiCommand) Description() Description { method Execute (line 45) | func (c *ApiCommand) Execute(args []string) error { function getServiceMethod (line 83) | func getServiceMethod(s string) (string, string) { type serviceHandler (line 93) | type serviceHandler function callLogService (line 100) | func callLogService(ctx context.Context, conn *grpc.ClientConn, method s... function callStatsService (line 119) | func callStatsService(ctx context.Context, conn *grpc.ClientConn, method... function init (line 156) | func init() { FILE: infra/control/cert.go type stringList (line 17) | type stringList method String (line 19) | func (l *stringList) String() string { method Set (line 23) | func (l *stringList) Set(v string) error { type jsonCert (line 31) | type jsonCert struct type CertificateCommand (line 36) | type CertificateCommand struct method Name (line 39) | func (c *CertificateCommand) Name() string { method Description (line 43) | func (c *CertificateCommand) Description() Description { method printJson (line 56) | func (c *CertificateCommand) printJson(certificate *cert.Certificate) { method writeFile (line 68) | func (c *CertificateCommand) writeFile(content []byte, name string) er... method printFile (line 78) | func (c *CertificateCommand) printFile(certificate *cert.Certificate, ... method Execute (line 87) | func (c *CertificateCommand) Execute(args []string) error { function init (line 137) | func init() { FILE: infra/control/command.go type Description (line 10) | type Description struct type Command (line 15) | type Command interface function RegisterCommand (line 26) | func RegisterCommand(cmd Command) error { function GetCommand (line 35) | func GetCommand(name string) Command { type hiddenCommand (line 43) | type hiddenCommand interface function PrintUsage (line 47) | func PrintUsage() { FILE: infra/control/config.go type ConfigCommand (line 17) | type ConfigCommand struct method Name (line 20) | func (c *ConfigCommand) Name() string { method Description (line 25) | func (c *ConfigCommand) Description() Description { method Execute (line 33) | func (c *ConfigCommand) Execute(args []string) error { method LoadArg (line 68) | func (c *ConfigCommand) LoadArg(arg string) (out io.Reader, err error) { function init (line 86) | func init() { FILE: infra/control/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: infra/control/fetch.go type FetchCommand (line 14) | type FetchCommand struct method Name (line 16) | func (c *FetchCommand) Name() string { method Description (line 20) | func (c *FetchCommand) Description() Description { method Execute (line 27) | func (c *FetchCommand) Execute(args []string) error { function FetchHTTPContent (line 41) | func FetchHTTPContent(target string) ([]byte, error) { function init (line 77) | func init() { FILE: infra/control/love.go constant content (line 14) | content = "H4sIAAAAAAAC/4SVMaskNwzH+/kUW6izcSthMGrcqLhVk0rdQS5cSMg7Xu4S0... type LoveCommand (line 16) | type LoveCommand struct method Name (line 18) | func (*LoveCommand) Name() string { method Hidden (line 22) | func (*LoveCommand) Hidden() bool { method Description (line 26) | func (c *LoveCommand) Description() Description { method Execute (line 33) | func (*LoveCommand) Execute([]string) error { function init (line 51) | func init() { FILE: infra/control/main/main.go function getCommandName (line 13) | func getCommandName() string { function main (line 20) | func main() { FILE: infra/control/tlsping.go type TlsPingCommand (line 13) | type TlsPingCommand struct method Name (line 15) | func (c *TlsPingCommand) Name() string { method Description (line 19) | func (c *TlsPingCommand) Description() Description { method Execute (line 35) | func (c *TlsPingCommand) Execute(args []string) error { function printCertificates (line 26) | func printCertificates(certs []*x509.Certificate) { function init (line 117) | func init() { FILE: infra/control/uuid.go type UUIDCommand (line 10) | type UUIDCommand struct method Name (line 12) | func (c *UUIDCommand) Name() string { method Description (line 16) | func (c *UUIDCommand) Description() Description { method Execute (line 23) | func (c *UUIDCommand) Execute([]string) error { function init (line 29) | func init() { FILE: infra/control/verify.go type VerifyCommand (line 10) | type VerifyCommand struct method Name (line 12) | func (c *VerifyCommand) Name() string { method Description (line 16) | func (c *VerifyCommand) Description() Description { method Execute (line 26) | func (c *VerifyCommand) Execute(args []string) error { function init (line 60) | func init() { FILE: infra/vprotogen/main.go function main (line 15) | func main() { FILE: main/confloader/confloader.go type configFileLoader (line 8) | type configFileLoader type extconfigLoader (line 9) | type extconfigLoader function LoadConfig (line 18) | func LoadConfig(file string) (io.Reader, error) { function LoadExtConfig (line 28) | func LoadExtConfig(files []string) (io.Reader, error) { FILE: main/confloader/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: main/confloader/external/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: main/confloader/external/external.go function ConfigLoader (line 20) | func ConfigLoader(arg string) (out io.Reader, err error) { function FetchHTTPContent (line 38) | func FetchHTTPContent(target string) ([]byte, error) { function ExtConfigLoader (line 74) | func ExtConfigLoader(files []string) (io.Reader, error) { function init (line 83) | func init() { FILE: main/distro/debug/debug.go function init (line 6) | func init() { FILE: main/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: main/json/config_json.go function init (line 15) | func init() { FILE: main/json/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: main/jsonem/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: main/jsonem/jsonem.go function init (line 14) | func init() { FILE: main/main.go function fileExists (line 44) | func fileExists(file string) bool { function dirExists (line 49) | func dirExists(file string) bool { function readConfDir (line 57) | func readConfDir(dirPath string) { function getConfigFilePath (line 69) | func getConfigFilePath() (cmdarg.Arg, error) { function GetConfigFormat (line 101) | func GetConfigFormat() string { function startV2Ray (line 110) | func startV2Ray() (core.Server, error) { function printVersion (line 129) | func printVersion() { function main (line 136) | func main() { FILE: main/main_test.go function TestRunMainForCoverage (line 9) | func TestRunMainForCoverage(t *testing.T) { FILE: proxy/blackhole/blackhole.go type Handler (line 19) | type Handler struct method Process (line 35) | func (h *Handler) Process(ctx context.Context, link *transport.Link, d... function New (line 24) | func New(ctx context.Context, config *Config) (*Handler, error) { function init (line 45) | func init() { FILE: proxy/blackhole/blackhole_test.go function TestBlackholeHTTPResponse (line 15) | func TestBlackholeHTTPResponse(t *testing.T) { FILE: proxy/blackhole/config.go constant http403response (line 9) | http403response = `HTTP/1.1 403 Forbidden type ResponseConfig (line 19) | type ResponseConfig interface method WriteTo (line 25) | func (*NoneResponse) WriteTo(buf.Writer) int32 { return 0 } method WriteTo (line 28) | func (*HTTPResponse) WriteTo(writer buf.Writer) int32 { method GetInternalResponse (line 37) | func (c *Config) GetInternalResponse() (ResponseConfig, error) { FILE: proxy/blackhole/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type NoneResponse (line 29) | type NoneResponse struct method Reset (line 35) | func (x *NoneResponse) Reset() { method String (line 44) | func (x *NoneResponse) String() string { method ProtoMessage (line 48) | func (*NoneResponse) ProtoMessage() {} method ProtoReflect (line 50) | func (x *NoneResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 63) | func (*NoneResponse) Descriptor() ([]byte, []int) { type HTTPResponse (line 67) | type HTTPResponse struct method Reset (line 73) | func (x *HTTPResponse) Reset() { method String (line 82) | func (x *HTTPResponse) String() string { method ProtoMessage (line 86) | func (*HTTPResponse) ProtoMessage() {} method ProtoReflect (line 88) | func (x *HTTPResponse) ProtoReflect() protoreflect.Message { method Descriptor (line 101) | func (*HTTPResponse) Descriptor() ([]byte, []int) { type Config (line 105) | type Config struct method Reset (line 113) | func (x *Config) Reset() { method String (line 122) | func (x *Config) String() string { method ProtoMessage (line 126) | func (*Config) ProtoMessage() {} method ProtoReflect (line 128) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 141) | func (*Config) Descriptor() ([]byte, []int) { method GetResponse (line 145) | func (x *Config) GetResponse() *serial.TypedMessage { function file_proxy_blackhole_config_proto_rawDescGZIP (line 182) | func file_proxy_blackhole_config_proto_rawDescGZIP() []byte { function init (line 205) | func init() { file_proxy_blackhole_config_proto_init() } function file_proxy_blackhole_config_proto_init (line 206) | func file_proxy_blackhole_config_proto_init() { FILE: proxy/blackhole/config_test.go function TestHTTPResponse (line 13) | func TestHTTPResponse(t *testing.T) { FILE: proxy/blackhole/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/dns/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 29) | type Config struct method Reset (line 39) | func (x *Config) Reset() { method String (line 48) | func (x *Config) String() string { method ProtoMessage (line 52) | func (*Config) ProtoMessage() {} method ProtoReflect (line 54) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*Config) Descriptor() ([]byte, []int) { method GetServer (line 71) | func (x *Config) GetServer() *net.Endpoint { function file_proxy_dns_config_proto_rawDescGZIP (line 103) | func file_proxy_dns_config_proto_rawDescGZIP() []byte { function init (line 124) | func init() { file_proxy_dns_config_proto_init() } function file_proxy_dns_config_proto_init (line 125) | func file_proxy_dns_config_proto_init() { FILE: proxy/dns/dns.go function init (line 24) | func init() { type ownLinkVerifier (line 36) | type ownLinkVerifier interface type Handler (line 40) | type Handler struct method Init (line 47) | func (h *Handler) Init(config *Config, dnsClient dns.Client) error { method isOwnLink (line 70) | func (h *Handler) isOwnLink(ctx context.Context) bool { method Process (line 99) | func (h *Handler) Process(ctx context.Context, link *transport.Link, d... method handleIPQuery (line 210) | func (h *Handler) handleIPQuery(id uint16, qType dnsmessage.Type, doma... function parseIPQuery (line 74) | func parseIPQuery(b []byte) (r bool, domain string, id uint16, qType dns... type outboundConn (line 271) | type outboundConn struct method dial (line 279) | func (c *outboundConn) dial() error { method Write (line 289) | func (c *outboundConn) Write(b []byte) (int, error) { method Read (line 305) | func (c *outboundConn) Read(b []byte) (int, error) { method Close (line 322) | func (c *outboundConn) Close() error { FILE: proxy/dns/dns_test.go type staticHandler (line 27) | type staticHandler struct method ServeDNS (line 30) | func (*staticHandler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { function TestUDPDNSTunnel (line 73) | func TestUDPDNSTunnel(t *testing.T) { function TestTCPDNSTunnel (line 191) | func TestTCPDNSTunnel(t *testing.T) { function TestUDP2TCPDNSTunnel (line 277) | func TestUDP2TCPDNSTunnel(t *testing.T) { FILE: proxy/dns/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/dokodemo/config.go method GetPredefinedAddress (line 8) | func (v *Config) GetPredefinedAddress() net.Address { FILE: proxy/dokodemo/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 29) | type Config struct method Reset (line 49) | func (x *Config) Reset() { method String (line 58) | func (x *Config) String() string { method ProtoMessage (line 62) | func (*Config) ProtoMessage() {} method ProtoReflect (line 64) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 77) | func (*Config) Descriptor() ([]byte, []int) { method GetAddress (line 81) | func (x *Config) GetAddress() *net.IPOrDomain { method GetPort (line 88) | func (x *Config) GetPort() uint32 { method GetNetworkList (line 96) | func (x *Config) GetNetworkList() *net.NetworkList { method GetNetworks (line 103) | func (x *Config) GetNetworks() []net.Network { method GetTimeout (line 111) | func (x *Config) GetTimeout() uint32 { method GetFollowRedirect (line 118) | func (x *Config) GetFollowRedirect() bool { method GetUserLevel (line 125) | func (x *Config) GetUserLevel() uint32 { function file_proxy_dokodemo_config_proto_rawDescGZIP (line 176) | func file_proxy_dokodemo_config_proto_rawDescGZIP() []byte { function init (line 201) | func init() { file_proxy_dokodemo_config_proto_init() } function file_proxy_dokodemo_config_proto_init (line 202) | func file_proxy_dokodemo_config_proto_init() { FILE: proxy/dokodemo/dokodemo.go function init (line 26) | func init() { type DokodemoDoor (line 36) | type DokodemoDoor struct method Init (line 45) | func (d *DokodemoDoor) Init(config *Config, pm policy.Manager, sockopt... method Network (line 59) | func (d *DokodemoDoor) Network() []net.Network { method policy (line 67) | func (d *DokodemoDoor) policy() policy.Session { method Process (line 81) | func (d *DokodemoDoor) Process(ctx context.Context, network net.Networ... type hasHandshakeAddress (line 76) | type hasHandshakeAddress interface FILE: proxy/dokodemo/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/freedom/config.go method useIP (line 3) | func (c *Config) useIP() bool { FILE: proxy/freedom/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config_DomainStrategy (line 29) | type Config_DomainStrategy method Enum (line 54) | func (x Config_DomainStrategy) Enum() *Config_DomainStrategy { method String (line 60) | func (x Config_DomainStrategy) String() string { method Descriptor (line 64) | func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor { method Type (line 68) | func (Config_DomainStrategy) Type() protoreflect.EnumType { method Number (line 72) | func (x Config_DomainStrategy) Number() protoreflect.EnumNumber { method EnumDescriptor (line 77) | func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) { constant Config_AS_IS (line 32) | Config_AS_IS Config_DomainStrategy = 0 constant Config_USE_IP (line 33) | Config_USE_IP Config_DomainStrategy = 1 constant Config_USE_IP4 (line 34) | Config_USE_IP4 Config_DomainStrategy = 2 constant Config_USE_IP6 (line 35) | Config_USE_IP6 Config_DomainStrategy = 3 type DestinationOverride (line 81) | type DestinationOverride struct method Reset (line 89) | func (x *DestinationOverride) Reset() { method String (line 98) | func (x *DestinationOverride) String() string { method ProtoMessage (line 102) | func (*DestinationOverride) ProtoMessage() {} method ProtoReflect (line 104) | func (x *DestinationOverride) ProtoReflect() protoreflect.Message { method Descriptor (line 117) | func (*DestinationOverride) Descriptor() ([]byte, []int) { method GetServer (line 121) | func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint { type Config (line 128) | type Config struct method Reset (line 140) | func (x *Config) Reset() { method String (line 149) | func (x *Config) String() string { method ProtoMessage (line 153) | func (*Config) ProtoMessage() {} method ProtoReflect (line 155) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 168) | func (*Config) Descriptor() ([]byte, []int) { method GetDomainStrategy (line 172) | func (x *Config) GetDomainStrategy() Config_DomainStrategy { method GetTimeout (line 180) | func (x *Config) GetTimeout() uint32 { method GetDestinationOverride (line 187) | func (x *Config) GetDestinationOverride() *DestinationOverride { method GetUserLevel (line 194) | func (x *Config) GetUserLevel() uint32 { function file_proxy_freedom_config_proto_rawDescGZIP (line 249) | func file_proxy_freedom_config_proto_rawDescGZIP() []byte { function init (line 275) | func init() { file_proxy_freedom_config_proto_init() } function file_proxy_freedom_config_proto_init (line 276) | func file_proxy_freedom_config_proto_init() { FILE: proxy/freedom/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/freedom/freedom.go function init (line 26) | func init() { type Handler (line 39) | type Handler struct method Init (line 46) | func (h *Handler) Init(config *Config, pm policy.Manager, d dns.Client... method policy (line 54) | func (h *Handler) policy() policy.Session { method resolveIP (line 62) | func (h *Handler) resolveIP(ctx context.Context, domain string, localA... method Process (line 95) | func (h *Handler) Process(ctx context.Context, link *transport.Link, d... function isValidAddress (line 85) | func isValidAddress(addr *net.IPOrDomain) bool { FILE: proxy/http/client.go type Client (line 32) | type Client struct method Process (line 69) | func (c *Client) Process(ctx context.Context, link *transport.Link, di... type h2Conn (line 37) | type h2Conn struct function NewClient (line 48) | func NewClient(ctx context.Context, config *ClientConfig) (*Client, erro... function setUpHTTPTunnel (line 139) | func setUpHTTPTunnel(ctx context.Context, dest net.Destination, target s... function newHTTP2Conn (line 281) | func newHTTP2Conn(c net.Conn, pipedReqBody *io.PipeWriter, respBody io.R... type http2Conn (line 285) | type http2Conn struct method Read (line 291) | func (h *http2Conn) Read(p []byte) (n int, err error) { method Write (line 295) | func (h *http2Conn) Write(p []byte) (n int, err error) { method Close (line 299) | func (h *http2Conn) Close() error { function init (line 304) | func init() { FILE: proxy/http/config.go method Equals (line 7) | func (a *Account) Equals(another protocol.Account) bool { method AsAccount (line 14) | func (a *Account) AsAccount() (protocol.Account, error) { method HasAccount (line 18) | func (sc *ServerConfig) HasAccount(username, password string) bool { FILE: proxy/http/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Account (line 29) | type Account struct method Reset (line 38) | func (x *Account) Reset() { method String (line 47) | func (x *Account) String() string { method ProtoMessage (line 51) | func (*Account) ProtoMessage() {} method ProtoReflect (line 53) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 66) | func (*Account) Descriptor() ([]byte, []int) { method GetUsername (line 70) | func (x *Account) GetUsername() string { method GetPassword (line 77) | func (x *Account) GetPassword() string { type ServerConfig (line 85) | type ServerConfig struct method Reset (line 97) | func (x *ServerConfig) Reset() { method String (line 106) | func (x *ServerConfig) String() string { method ProtoMessage (line 110) | func (*ServerConfig) ProtoMessage() {} method ProtoReflect (line 112) | func (x *ServerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 125) | func (*ServerConfig) Descriptor() ([]byte, []int) { method GetTimeout (line 130) | func (x *ServerConfig) GetTimeout() uint32 { method GetAccounts (line 137) | func (x *ServerConfig) GetAccounts() map[string]string { method GetAllowTransparent (line 144) | func (x *ServerConfig) GetAllowTransparent() bool { method GetUserLevel (line 151) | func (x *ServerConfig) GetUserLevel() uint32 { type ClientConfig (line 159) | type ClientConfig struct method Reset (line 168) | func (x *ClientConfig) Reset() { method String (line 177) | func (x *ClientConfig) String() string { method ProtoMessage (line 181) | func (*ClientConfig) ProtoMessage() {} method ProtoReflect (line 183) | func (x *ClientConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 196) | func (*ClientConfig) Descriptor() ([]byte, []int) { method GetServer (line 200) | func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { function file_proxy_http_config_proto_rawDescGZIP (line 254) | func file_proxy_http_config_proto_rawDescGZIP() []byte { function init (line 279) | func init() { file_proxy_http_config_proto_init() } function file_proxy_http_config_proto_init (line 280) | func file_proxy_http_config_proto_init() { FILE: proxy/http/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/http/server.go type Server (line 31) | type Server struct method policy (line 47) | func (s *Server) policy() policy.Session { method Network (line 57) | func (*Server) Network() []net.Network { method Process (line 87) | func (s *Server) Process(ctx context.Context, network net.Network, con... method handleConnect (line 162) | func (s *Server) handleConnect(ctx context.Context, request *http.Requ... method handlePlainHTTP (line 218) | func (s *Server) handlePlainHTTP(ctx context.Context, request *http.Re... function NewServer (line 37) | func NewServer(ctx context.Context, config *ServerConfig) (*Server, erro... function isTimeout (line 61) | func isTimeout(err error) bool { function parseBasicAuth (line 66) | func parseBasicAuth(auth string) (username, password string, ok bool) { type readerOnly (line 83) | type readerOnly struct function init (line 325) | func init() { FILE: proxy/mtproto/auth.go constant HeaderSize (line 14) | HeaderSize = 64 type SessionContext (line 17) | type SessionContext struct function DefaultSessionContext (line 22) | func DefaultSessionContext() SessionContext { type contextKey (line 29) | type contextKey constant sessionContextKey (line 32) | sessionContextKey contextKey = iota function ContextWithSessionContext (line 35) | func ContextWithSessionContext(ctx context.Context, c SessionContext) co... function SessionContextFromContext (line 39) | func SessionContextFromContext(ctx context.Context) SessionContext { type Authentication (line 46) | type Authentication struct method DataCenterID (line 54) | func (a *Authentication) DataCenterID() uint16 { method ConnectionType (line 62) | func (a *Authentication) ConnectionType() [4]byte { method ApplySecret (line 68) | func (a *Authentication) ApplySecret(b []byte) { function generateRandomBytes (line 73) | func generateRandomBytes(random []byte, connType [4]byte) { function NewAuthentication (line 96) | func NewAuthentication(sc SessionContext) *Authentication { function ReadAuthentication (line 108) | func ReadAuthentication(reader io.Reader) (*Authentication, error) { function Inverse (line 127) | func Inverse(b []byte) []byte { function getAuthenticationObject (line 144) | func getAuthenticationObject() *Authentication { function putAuthenticationObject (line 148) | func putAuthenticationObject(auth *Authentication) { FILE: proxy/mtproto/auth_test.go function TestInverse (line 14) | func TestInverse(t *testing.T) { function TestAuthenticationReadWrite (line 32) | func TestAuthenticationReadWrite(t *testing.T) { FILE: proxy/mtproto/client.go type Client (line 16) | type Client struct method Process (line 23) | func (c *Client) Process(ctx context.Context, link *transport.Link, di... function NewClient (line 19) | func NewClient(ctx context.Context, config *ClientConfig) (*Client, erro... function init (line 73) | func init() { FILE: proxy/mtproto/config.go method Equals (line 7) | func (a *Account) Equals(another protocol.Account) bool { FILE: proxy/mtproto/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Account (line 29) | type Account struct method Reset (line 37) | func (x *Account) Reset() { method String (line 46) | func (x *Account) String() string { method ProtoMessage (line 50) | func (*Account) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Account) Descriptor() ([]byte, []int) { method GetSecret (line 69) | func (x *Account) GetSecret() []byte { type ServerConfig (line 76) | type ServerConfig struct method Reset (line 87) | func (x *ServerConfig) Reset() { method String (line 96) | func (x *ServerConfig) String() string { method ProtoMessage (line 100) | func (*ServerConfig) ProtoMessage() {} method ProtoReflect (line 102) | func (x *ServerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 115) | func (*ServerConfig) Descriptor() ([]byte, []int) { method GetUser (line 119) | func (x *ServerConfig) GetUser() []*protocol.User { type ClientConfig (line 126) | type ClientConfig struct method Reset (line 132) | func (x *ClientConfig) Reset() { method String (line 141) | func (x *ClientConfig) String() string { method ProtoMessage (line 145) | func (*ClientConfig) ProtoMessage() {} method ProtoReflect (line 147) | func (x *ClientConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 160) | func (*ClientConfig) Descriptor() ([]byte, []int) { function file_proxy_mtproto_config_proto_rawDescGZIP (line 193) | func file_proxy_mtproto_config_proto_rawDescGZIP() []byte { function init (line 216) | func init() { file_proxy_mtproto_config_proto_init() } function file_proxy_mtproto_config_proto_init (line 217) | func file_proxy_mtproto_config_proto_init() { FILE: proxy/mtproto/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/mtproto/server.go type Server (line 34) | type Server struct method Network (line 64) | func (s *Server) Network() []net.Network { method Process (line 81) | func (s *Server) Process(ctx context.Context, network net.Network, con... function NewServer (line 40) | func NewServer(ctx context.Context, config *ServerConfig) (*Server, erro... function isValidConnectionType (line 71) | func isValidConnectionType(c [4]byte) bool { function init (line 158) | func init() { FILE: proxy/proxy.go type Inbound (line 19) | type Inbound interface type Outbound (line 28) | type Outbound interface type UserManager (line 34) | type UserManager interface type GetInbound (line 42) | type GetInbound interface type GetOutbound (line 46) | type GetOutbound interface FILE: proxy/shadowsocks/client.go type Client (line 23) | type Client struct method Process (line 51) | func (c *Client) Process(ctx context.Context, link *transport.Link, di... function NewClient (line 29) | func NewClient(ctx context.Context, config *ClientConfig) (*Client, erro... function init (line 179) | func init() { FILE: proxy/shadowsocks/config.go type MemoryAccount (line 21) | type MemoryAccount struct method Equals (line 27) | func (a *MemoryAccount) Equals(another protocol.Account) bool { function createAesGcm (line 34) | func createAesGcm(key []byte) cipher.AEAD { function createChacha20Poly1305 (line 42) | func createChacha20Poly1305(key []byte) cipher.AEAD { method getCipher (line 48) | func (a *Account) getCipher() (Cipher, error) { method AsAccount (line 84) | func (a *Account) AsAccount() (protocol.Account, error) { type Cipher (line 96) | type Cipher interface type AesCfb (line 107) | type AesCfb struct method IsAEAD (line 111) | func (*AesCfb) IsAEAD() bool { method KeySize (line 115) | func (v *AesCfb) KeySize() int32 { method IVSize (line 119) | func (v *AesCfb) IVSize() int32 { method NewEncryptionWriter (line 123) | func (v *AesCfb) NewEncryptionWriter(key []byte, iv []byte, writer io.... method NewDecryptionReader (line 128) | func (v *AesCfb) NewDecryptionReader(key []byte, iv []byte, reader io.... method EncodePacket (line 135) | func (v *AesCfb) EncodePacket(key []byte, b *buf.Buffer) error { method DecodePacket (line 142) | func (v *AesCfb) DecodePacket(key []byte, b *buf.Buffer) error { type AEADCipher (line 153) | type AEADCipher struct method IsAEAD (line 159) | func (*AEADCipher) IsAEAD() bool { method KeySize (line 163) | func (c *AEADCipher) KeySize() int32 { method IVSize (line 167) | func (c *AEADCipher) IVSize() int32 { method createAuthenticator (line 171) | func (c *AEADCipher) createAuthenticator(key []byte, iv []byte) *crypt... method NewEncryptionWriter (line 181) | func (c *AEADCipher) NewEncryptionWriter(key []byte, iv []byte, writer... method NewDecryptionReader (line 188) | func (c *AEADCipher) NewDecryptionReader(key []byte, iv []byte, reader... method EncodePacket (line 195) | func (c *AEADCipher) EncodePacket(key []byte, b *buf.Buffer) error { method DecodePacket (line 205) | func (c *AEADCipher) DecodePacket(key []byte, b *buf.Buffer) error { type ChaCha20 (line 221) | type ChaCha20 struct method IsAEAD (line 225) | func (*ChaCha20) IsAEAD() bool { method KeySize (line 229) | func (v *ChaCha20) KeySize() int32 { method IVSize (line 233) | func (v *ChaCha20) IVSize() int32 { method NewEncryptionWriter (line 237) | func (v *ChaCha20) NewEncryptionWriter(key []byte, iv []byte, writer i... method NewDecryptionReader (line 242) | func (v *ChaCha20) NewDecryptionReader(key []byte, iv []byte, reader i... method EncodePacket (line 247) | func (v *ChaCha20) EncodePacket(key []byte, b *buf.Buffer) error { method DecodePacket (line 254) | func (v *ChaCha20) DecodePacket(key []byte, b *buf.Buffer) error { type NoneCipher (line 265) | type NoneCipher struct method KeySize (line 267) | func (NoneCipher) KeySize() int32 { return 0 } method IVSize (line 268) | func (NoneCipher) IVSize() int32 { return 0 } method IsAEAD (line 269) | func (NoneCipher) IsAEAD() bool { method NewDecryptionReader (line 273) | func (NoneCipher) NewDecryptionReader(key []byte, iv []byte, reader io... method NewEncryptionWriter (line 277) | func (NoneCipher) NewEncryptionWriter(key []byte, iv []byte, writer io... method EncodePacket (line 281) | func (NoneCipher) EncodePacket(key []byte, b *buf.Buffer) error { method DecodePacket (line 285) | func (NoneCipher) DecodePacket(key []byte, b *buf.Buffer) error { function passwordToCipherKey (line 289) | func passwordToCipherKey(password []byte, keySize int32) []byte { function hkdfSHA1 (line 306) | func hkdfSHA1(secret, salt, outkey []byte) { FILE: proxy/shadowsocks/config.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 28) | _ = proto.ProtoPackageIsVersion4 type CipherType (line 30) | type CipherType method Enum (line 70) | func (x CipherType) Enum() *CipherType { method String (line 76) | func (x CipherType) String() string { method Descriptor (line 80) | func (CipherType) Descriptor() protoreflect.EnumDescriptor { method Type (line 84) | func (CipherType) Type() protoreflect.EnumType { method Number (line 88) | func (x CipherType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 93) | func (CipherType) EnumDescriptor() ([]byte, []int) { constant CipherType_UNKNOWN (line 33) | CipherType_UNKNOWN CipherType = 0 constant CipherType_AES_128_CFB (line 34) | CipherType_AES_128_CFB CipherType = 1 constant CipherType_AES_256_CFB (line 35) | CipherType_AES_256_CFB CipherType = 2 constant CipherType_CHACHA20 (line 36) | CipherType_CHACHA20 CipherType = 3 constant CipherType_CHACHA20_IETF (line 37) | CipherType_CHACHA20_IETF CipherType = 4 constant CipherType_AES_128_GCM (line 38) | CipherType_AES_128_GCM CipherType = 5 constant CipherType_AES_256_GCM (line 39) | CipherType_AES_256_GCM CipherType = 6 constant CipherType_CHACHA20_POLY1305 (line 40) | CipherType_CHACHA20_POLY1305 CipherType = 7 constant CipherType_NONE (line 41) | CipherType_NONE CipherType = 8 type Account (line 97) | type Account struct method Reset (line 106) | func (x *Account) Reset() { method String (line 115) | func (x *Account) String() string { method ProtoMessage (line 119) | func (*Account) ProtoMessage() {} method ProtoReflect (line 121) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 134) | func (*Account) Descriptor() ([]byte, []int) { method GetPassword (line 138) | func (x *Account) GetPassword() string { method GetCipherType (line 145) | func (x *Account) GetCipherType() CipherType { type ServerConfig (line 152) | type ServerConfig struct method Reset (line 166) | func (x *ServerConfig) Reset() { method String (line 175) | func (x *ServerConfig) String() string { method ProtoMessage (line 179) | func (*ServerConfig) ProtoMessage() {} method ProtoReflect (line 181) | func (x *ServerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 194) | func (*ServerConfig) Descriptor() ([]byte, []int) { method GetUdpEnabled (line 199) | func (x *ServerConfig) GetUdpEnabled() bool { method GetUser (line 206) | func (x *ServerConfig) GetUser() *protocol.User { method GetNetwork (line 213) | func (x *ServerConfig) GetNetwork() []net.Network { type ClientConfig (line 220) | type ClientConfig struct method Reset (line 228) | func (x *ClientConfig) Reset() { method String (line 237) | func (x *ClientConfig) String() string { method ProtoMessage (line 241) | func (*ClientConfig) ProtoMessage() {} method ProtoReflect (line 243) | func (x *ClientConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 256) | func (*ClientConfig) Descriptor() ([]byte, []int) { method GetServer (line 260) | func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { function file_proxy_shadowsocks_config_proto_rawDescGZIP (line 327) | func file_proxy_shadowsocks_config_proto_rawDescGZIP() []byte { function init (line 357) | func init() { file_proxy_shadowsocks_config_proto_init() } function file_proxy_shadowsocks_config_proto_init (line 358) | func file_proxy_shadowsocks_config_proto_init() { FILE: proxy/shadowsocks/config_test.go function TestAEADCipherUDP (line 14) | func TestAEADCipherUDP(t *testing.T) { FILE: proxy/shadowsocks/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/shadowsocks/protocol.go constant Version (line 22) | Version = 1 function ReadTCPSession (line 35) | func ReadTCPSession(user *protocol.MemoryUser, reader io.Reader) (*proto... function DrainConnN (line 101) | func DrainConnN(reader io.Reader, n int) error { function WriteTCPRequest (line 107) | func WriteTCPRequest(request *protocol.RequestHeader, writer io.Writer) ... function ReadTCPResponse (line 138) | func ReadTCPResponse(user *protocol.MemoryUser, reader io.Reader) (buf.R... function WriteTCPResponse (line 152) | func WriteTCPResponse(request *protocol.RequestHeader, writer io.Writer)... function EncodeUDPPacket (line 168) | func EncodeUDPPacket(request *protocol.RequestHeader, payload []byte) (*... function DecodeUDPPacket (line 191) | func DecodeUDPPacket(user *protocol.MemoryUser, payload *buf.Buffer) (*p... type UDPReader (line 224) | type UDPReader struct method ReadMultiBuffer (line 229) | func (v *UDPReader) ReadMultiBuffer() (buf.MultiBuffer, error) { type UDPWriter (line 244) | type UDPWriter struct method Write (line 250) | func (w *UDPWriter) Write(payload []byte) (int, error) { FILE: proxy/shadowsocks/protocol_test.go function toAccount (line 15) | func toAccount(a *Account) protocol.Account { function TestUDPEncoding (line 21) | func TestUDPEncoding(t *testing.T) { function TestTCPRequest (line 53) | func TestTCPRequest(t *testing.T) { function TestUDPReaderWriter (line 139) | func TestUDPReaderWriter(t *testing.T) { FILE: proxy/shadowsocks/server.go type Server (line 25) | type Server struct method Network (line 52) | func (s *Server) Network() []net.Network { method Process (line 63) | func (s *Server) Process(ctx context.Context, network net.Network, con... method handlerUDPPayload (line 74) | func (s *Server) handlerUDPPayload(ctx context.Context, conn internet.... method handleConnection (line 143) | func (s *Server) handleConnection(ctx context.Context, conn internet.C... function NewServer (line 32) | func NewServer(ctx context.Context, config *ServerConfig) (*Server, erro... function init (line 235) | func init() { FILE: proxy/socks/client.go type Client (line 24) | type Client struct method Process (line 51) | func (c *Client) Process(ctx context.Context, link *transport.Link, di... function NewClient (line 30) | func NewClient(ctx context.Context, config *ClientConfig) (*Client, erro... function init (line 150) | func init() { FILE: proxy/socks/config.go method Equals (line 7) | func (a *Account) Equals(another protocol.Account) bool { method AsAccount (line 14) | func (a *Account) AsAccount() (protocol.Account, error) { method HasAccount (line 18) | func (c *ServerConfig) HasAccount(username, password string) bool { FILE: proxy/socks/config.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 28) | _ = proto.ProtoPackageIsVersion4 type AuthType (line 31) | type AuthType method Enum (line 52) | func (x AuthType) Enum() *AuthType { method String (line 58) | func (x AuthType) String() string { method Descriptor (line 62) | func (AuthType) Descriptor() protoreflect.EnumDescriptor { method Type (line 66) | func (AuthType) Type() protoreflect.EnumType { method Number (line 70) | func (x AuthType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 75) | func (AuthType) EnumDescriptor() ([]byte, []int) { constant AuthType_NO_AUTH (line 35) | AuthType_NO_AUTH AuthType = 0 constant AuthType_PASSWORD (line 37) | AuthType_PASSWORD AuthType = 1 type Account (line 80) | type Account struct method Reset (line 89) | func (x *Account) Reset() { method String (line 98) | func (x *Account) String() string { method ProtoMessage (line 102) | func (*Account) ProtoMessage() {} method ProtoReflect (line 104) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 117) | func (*Account) Descriptor() ([]byte, []int) { method GetUsername (line 121) | func (x *Account) GetUsername() string { method GetPassword (line 128) | func (x *Account) GetPassword() string { type ServerConfig (line 136) | type ServerConfig struct method Reset (line 150) | func (x *ServerConfig) Reset() { method String (line 159) | func (x *ServerConfig) String() string { method ProtoMessage (line 163) | func (*ServerConfig) ProtoMessage() {} method ProtoReflect (line 165) | func (x *ServerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 178) | func (*ServerConfig) Descriptor() ([]byte, []int) { method GetAuthType (line 182) | func (x *ServerConfig) GetAuthType() AuthType { method GetAccounts (line 189) | func (x *ServerConfig) GetAccounts() map[string]string { method GetAddress (line 196) | func (x *ServerConfig) GetAddress() *net.IPOrDomain { method GetUdpEnabled (line 203) | func (x *ServerConfig) GetUdpEnabled() bool { method GetTimeout (line 211) | func (x *ServerConfig) GetTimeout() uint32 { method GetUserLevel (line 218) | func (x *ServerConfig) GetUserLevel() uint32 { type ClientConfig (line 226) | type ClientConfig struct method Reset (line 235) | func (x *ClientConfig) Reset() { method String (line 244) | func (x *ClientConfig) String() string { method ProtoMessage (line 248) | func (*ClientConfig) ProtoMessage() {} method ProtoReflect (line 250) | func (x *ClientConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 263) | func (*ClientConfig) Descriptor() ([]byte, []int) { method GetServer (line 267) | func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { function file_proxy_socks_config_proto_rawDescGZIP (line 333) | func file_proxy_socks_config_proto_rawDescGZIP() []byte { function init (line 363) | func init() { file_proxy_socks_config_proto_init() } function file_proxy_socks_config_proto_init (line 364) | func file_proxy_socks_config_proto_init() { FILE: proxy/socks/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/socks/protocol.go constant socks5Version (line 16) | socks5Version = 0x05 constant socks4Version (line 17) | socks4Version = 0x04 constant cmdTCPConnect (line 19) | cmdTCPConnect = 0x01 constant cmdTCPBind (line 20) | cmdTCPBind = 0x02 constant cmdUDPPort (line 21) | cmdUDPPort = 0x03 constant cmdTorResolve (line 22) | cmdTorResolve = 0xF0 constant cmdTorResolvePTR (line 23) | cmdTorResolvePTR = 0xF1 constant socks4RequestGranted (line 25) | socks4RequestGranted = 90 constant socks4RequestRejected (line 26) | socks4RequestRejected = 91 constant authNotRequired (line 28) | authNotRequired = 0x00 constant authPassword (line 30) | authPassword = 0x02 constant authNoMatchingMethod (line 31) | authNoMatchingMethod = 0xFF constant statusSuccess (line 33) | statusSuccess = 0x00 constant statusCmdNotSupport (line 34) | statusCmdNotSupport = 0x07 type ServerSession (line 43) | type ServerSession struct method handshake4 (line 48) | func (s *ServerSession) handshake4(cmd byte, reader io.Reader, writer ... method auth5 (line 97) | func (s *ServerSession) auth5(nMethod byte, reader io.Reader, writer i... method handshake5 (line 139) | func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, wri... method Handshake (line 208) | func (s *ServerSession) Handshake(reader io.Reader, writer io.Writer) ... function ReadUsernamePassword (line 235) | func ReadUsernamePassword(reader io.Reader) (string, string, error) { function ReadUntilNull (line 265) | func ReadUntilNull(reader io.Reader) (string, error) { function hasAuthMethod (line 284) | func hasAuthMethod(expectedAuth byte, authCandidates []byte) bool { function writeSocks5AuthenticationResponse (line 293) | func writeSocks5AuthenticationResponse(writer io.Writer, version byte, a... function writeSocks5Response (line 297) | func writeSocks5Response(writer io.Writer, errCode byte, address net.Add... function writeSocks4Response (line 309) | func writeSocks4Response(writer io.Writer, errCode byte, address net.Add... function DecodeUDPPacket (line 321) | func DecodeUDPPacket(packet *buf.Buffer) (*protocol.RequestHeader, error) { function EncodeUDPPacket (line 346) | func EncodeUDPPacket(request *protocol.RequestHeader, data []byte) (*buf... type UDPReader (line 357) | type UDPReader struct method ReadMultiBuffer (line 365) | func (r *UDPReader) ReadMultiBuffer() (buf.MultiBuffer, error) { function NewUDPReader (line 361) | func NewUDPReader(reader io.Reader) *UDPReader { type UDPWriter (line 376) | type UDPWriter struct method Write (line 389) | func (w *UDPWriter) Write(b []byte) (int, error) { function NewUDPWriter (line 381) | func NewUDPWriter(request *protocol.RequestHeader, writer io.Writer) *UD... function ClientHandshake (line 401) | func ClientHandshake(request *protocol.RequestHeader, reader io.Reader, ... FILE: proxy/socks/protocol_test.go function TestUDPEncoding (line 16) | func TestUDPEncoding(t *testing.T) { function TestReadUsernamePassword (line 39) | func TestReadUsernamePassword(t *testing.T) { function TestReadUntilNull (line 78) | func TestReadUntilNull(t *testing.T) { function BenchmarkReadUsernamePassword (line 112) | func BenchmarkReadUsernamePassword(b *testing.B) { FILE: proxy/socks/server.go type Server (line 28) | type Server struct method policy (line 43) | func (s *Server) policy() policy.Session { method Network (line 56) | func (s *Server) Network() []net.Network { method Process (line 65) | func (s *Server) Process(ctx context.Context, network net.Network, con... method processTCP (line 82) | func (s *Server) processTCP(ctx context.Context, conn internet.Connect... method handleUDP (line 141) | func (*Server) handleUDP(c io.Reader) error { method transport (line 147) | func (s *Server) transport(ctx context.Context, reader io.Reader, writ... method handleUDPPayload (line 188) | func (s *Server) handleUDPPayload(ctx context.Context, conn internet.C... function NewServer (line 34) | func NewServer(ctx context.Context, config *ServerConfig) (*Server, erro... function init (line 249) | func init() { FILE: proxy/trojan/client.go type Client (line 24) | type Client struct method Process (line 52) | func (c *Client) Process(ctx context.Context, link *transport.Link, di... function NewClient (line 30) | func NewClient(ctx context.Context, config *ClientConfig) (*Client, erro... function init (line 142) | func init() { FILE: proxy/trojan/config.go type MemoryAccount (line 13) | type MemoryAccount struct method Equals (line 29) | func (a *MemoryAccount) Equals(another protocol.Account) bool { method AsAccount (line 19) | func (a *Account) AsAccount() (protocol.Account, error) { function hexSha224 (line 36) | func hexSha224(password string) []byte { function hexString (line 44) | func hexString(data []byte) string { FILE: proxy/trojan/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Account (line 29) | type Account struct method Reset (line 37) | func (x *Account) Reset() { method String (line 46) | func (x *Account) String() string { method ProtoMessage (line 50) | func (*Account) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Account) Descriptor() ([]byte, []int) { method GetPassword (line 69) | func (x *Account) GetPassword() string { type Fallback (line 76) | type Fallback struct method Reset (line 88) | func (x *Fallback) Reset() { method String (line 97) | func (x *Fallback) String() string { method ProtoMessage (line 101) | func (*Fallback) ProtoMessage() {} method ProtoReflect (line 103) | func (x *Fallback) ProtoReflect() protoreflect.Message { method Descriptor (line 116) | func (*Fallback) Descriptor() ([]byte, []int) { method GetAlpn (line 120) | func (x *Fallback) GetAlpn() string { method GetPath (line 127) | func (x *Fallback) GetPath() string { method GetType (line 134) | func (x *Fallback) GetType() string { method GetDest (line 141) | func (x *Fallback) GetDest() string { method GetXver (line 148) | func (x *Fallback) GetXver() uint64 { type ClientConfig (line 155) | type ClientConfig struct method Reset (line 163) | func (x *ClientConfig) Reset() { method String (line 172) | func (x *ClientConfig) String() string { method ProtoMessage (line 176) | func (*ClientConfig) ProtoMessage() {} method ProtoReflect (line 178) | func (x *ClientConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 191) | func (*ClientConfig) Descriptor() ([]byte, []int) { method GetServer (line 195) | func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint { type ServerConfig (line 202) | type ServerConfig struct method Reset (line 211) | func (x *ServerConfig) Reset() { method String (line 220) | func (x *ServerConfig) String() string { method ProtoMessage (line 224) | func (*ServerConfig) ProtoMessage() {} method ProtoReflect (line 226) | func (x *ServerConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 239) | func (*ServerConfig) Descriptor() ([]byte, []int) { method GetUsers (line 243) | func (x *ServerConfig) GetUsers() []*protocol.User { method GetFallbacks (line 250) | func (x *ServerConfig) GetFallbacks() []*Fallback { function file_proxy_trojan_config_proto_rawDescGZIP (line 304) | func file_proxy_trojan_config_proto_rawDescGZIP() []byte { function init (line 331) | func init() { file_proxy_trojan_config_proto_init() } function file_proxy_trojan_config_proto_init (line 332) | func file_proxy_trojan_config_proto_init() { FILE: proxy/trojan/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/trojan/protocol.go constant maxLength (line 23) | maxLength = 8192 constant commandTCP (line 25) | commandTCP byte = 1 constant commandUDP (line 26) | commandUDP byte = 3 type ConnWriter (line 30) | type ConnWriter struct method Write (line 38) | func (c *ConnWriter) Write(p []byte) (n int, err error) { method WriteMultiBuffer (line 49) | func (c *ConnWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { method writeHeader (line 63) | func (c *ConnWriter) writeHeader() error { type PacketWriter (line 97) | type PacketWriter struct method WriteMultiBuffer (line 103) | func (w *PacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { method WriteMultiBufferWithMetadata (line 118) | func (w *PacketWriter) WriteMultiBufferWithMetadata(mb buf.MultiBuffer... method writePacket (line 132) | func (w *PacketWriter) writePacket(payload []byte, dest net.Destinatio... type ConnReader (line 160) | type ConnReader struct method ParseHeader (line 167) | func (c *ConnReader) ParseHeader() error { method Read (line 203) | func (c *ConnReader) Read(p []byte) (int, error) { method ReadMultiBuffer (line 214) | func (c *ConnReader) ReadMultiBuffer() (buf.MultiBuffer, error) { type PacketPayload (line 221) | type PacketPayload struct type PacketReader (line 227) | type PacketReader struct method ReadMultiBuffer (line 232) | func (r *PacketReader) ReadMultiBuffer() (buf.MultiBuffer, error) { method ReadMultiBufferWithMetadata (line 241) | func (r *PacketReader) ReadMultiBufferWithMetadata() (*PacketPayload, ... FILE: proxy/trojan/protocol_test.go function toAccount (line 14) | func toAccount(a *Account) protocol.Account { function TestTCPRequest (line 20) | func TestTCPRequest(t *testing.T) { function TestUDPRequest (line 52) | func TestUDPRequest(t *testing.T) { FILE: proxy/trojan/server.go function init (line 31) | func init() { type Server (line 38) | type Server struct method Network (line 89) | func (s *Server) Network() []net.Network { method Process (line 94) | func (s *Server) Process(ctx context.Context, network net.Network, con... method handleUDPPayload (line 202) | func (s *Server) handleUDPPayload(ctx context.Context, clientReader *P... method handleConnection (line 239) | func (s *Server) handleConnection(ctx context.Context, sessionPolicy p... method fallback (line 280) | func (s *Server) fallback(ctx context.Context, sid errors.ExportOption... function NewServer (line 45) | func NewServer(ctx context.Context, config *ServerConfig) (*Server, erro... FILE: proxy/trojan/validator.go type Validator (line 10) | type Validator struct method Add (line 15) | func (v *Validator) Add(u *protocol.MemoryUser) error { method Get (line 22) | func (v *Validator) Get(hash string) *protocol.MemoryUser { FILE: proxy/vless/account.go method AsAccount (line 11) | func (a *Account) AsAccount() (protocol.Account, error) { type MemoryAccount (line 24) | type MemoryAccount struct method Equals (line 34) | func (a *MemoryAccount) Equals(account protocol.Account) bool { FILE: proxy/vless/account.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Account (line 28) | type Account struct method Reset (line 41) | func (x *Account) Reset() { method String (line 50) | func (x *Account) String() string { method ProtoMessage (line 54) | func (*Account) ProtoMessage() {} method ProtoReflect (line 56) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 69) | func (*Account) Descriptor() ([]byte, []int) { method GetId (line 73) | func (x *Account) GetId() string { method GetFlow (line 80) | func (x *Account) GetFlow() string { method GetEncryption (line 87) | func (x *Account) GetEncryption() string { function file_proxy_vless_account_proto_rawDescGZIP (line 118) | func file_proxy_vless_account_proto_rawDescGZIP() []byte { function init (line 137) | func init() { file_proxy_vless_account_proto_init() } function file_proxy_vless_account_proto_init (line 138) | func file_proxy_vless_account_proto_init() { FILE: proxy/vless/encoding/addons.go function EncodeHeaderAddons (line 15) | func EncodeHeaderAddons(buffer *buf.Buffer, addons *Addons) error { function DecodeHeaderAddons (line 43) | func DecodeHeaderAddons(buffer *buf.Buffer, reader io.Reader) (*Addons, ... function EncodeBodyAddons (line 76) | func EncodeBodyAddons(writer io.Writer, request *protocol.RequestHeader,... function DecodeBodyAddons (line 92) | func DecodeBodyAddons(reader io.Reader, request *protocol.RequestHeader,... function NewMultiLengthPacketWriter (line 107) | func NewMultiLengthPacketWriter(writer buf.Writer) *MultiLengthPacketWri... type MultiLengthPacketWriter (line 113) | type MultiLengthPacketWriter struct method WriteMultiBuffer (line 117) | func (w *MultiLengthPacketWriter) WriteMultiBuffer(mb buf.MultiBuffer)... function NewLengthPacketWriter (line 146) | func NewLengthPacketWriter(writer io.Writer) *LengthPacketWriter { type LengthPacketWriter (line 153) | type LengthPacketWriter struct method WriteMultiBuffer (line 158) | func (w *LengthPacketWriter) WriteMultiBuffer(mb buf.MultiBuffer) error { function NewLengthPacketReader (line 179) | func NewLengthPacketReader(reader io.Reader) *LengthPacketReader { type LengthPacketReader (line 186) | type LengthPacketReader struct method ReadMultiBuffer (line 191) | func (r *LengthPacketReader) ReadMultiBuffer() (buf.MultiBuffer, error) { FILE: proxy/vless/encoding/addons.pb.go constant _ (line 23) | _ = proto.ProtoPackageIsVersion3 type Addons (line 25) | type Addons struct method Reset (line 33) | func (m *Addons) Reset() { *m = Addons{} } method String (line 34) | func (m *Addons) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 35) | func (*Addons) ProtoMessage() {} method Descriptor (line 36) | func (*Addons) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 39) | func (m *Addons) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 42) | func (m *Addons) XXX_Marshal(b []byte, deterministic bool) ([]byte, er... method XXX_Merge (line 54) | func (m *Addons) XXX_Merge(src proto.Message) { method XXX_Size (line 57) | func (m *Addons) XXX_Size() int { method XXX_DiscardUnknown (line 60) | func (m *Addons) XXX_DiscardUnknown() { method GetFlow (line 66) | func (m *Addons) GetFlow() string { method GetSeed (line 73) | func (m *Addons) GetSeed() []byte { method Marshal (line 102) | func (m *Addons) Marshal() (dAtA []byte, err error) { method MarshalTo (line 112) | func (m *Addons) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 117) | func (m *Addons) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 154) | func (m *Addons) Size() (n int) { method Unmarshal (line 180) | func (m *Addons) Unmarshal(dAtA []byte) error { function init (line 80) | func init() { function init (line 84) | func init() { proto.RegisterFile("proxy/vless/encoding/addons.proto", fi... function encodeVarintAddons (line 143) | func encodeVarintAddons(dAtA []byte, offset int, v uint64) int { function sovAddons (line 174) | func sovAddons(x uint64) (n int) { function sozAddons (line 177) | func sozAddons(x uint64) (n int) { function skipAddons (line 300) | func skipAddons(dAtA []byte) (n int, err error) { FILE: proxy/vless/encoding/encoding.go constant Version (line 17) | Version = byte(0) function EncodeRequestHeader (line 28) | func EncodeRequestHeader(writer io.Writer, request *protocol.RequestHead... function DecodeRequestHeader (line 63) | func DecodeRequestHeader(isfb bool, first *buf.Buffer, reader io.Reader,... function EncodeResponseHeader (line 139) | func EncodeResponseHeader(writer io.Writer, request *protocol.RequestHea... function DecodeResponseHeader (line 160) | func DecodeResponseHeader(reader io.Reader, request *protocol.RequestHea... FILE: proxy/vless/encoding/encoding_test.go function toAccount (line 17) | func toAccount(a *vless.Account) protocol.Account { function TestRequestSerialization (line 23) | func TestRequestSerialization(t *testing.T) { function TestInvalidRequest (line 60) | func TestInvalidRequest(t *testing.T) { function TestMuxRequest (line 92) | func TestMuxRequest(t *testing.T) { FILE: proxy/vless/encoding/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vless/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vless/inbound/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Fallback (line 29) | type Fallback struct method Reset (line 41) | func (x *Fallback) Reset() { method String (line 50) | func (x *Fallback) String() string { method ProtoMessage (line 54) | func (*Fallback) ProtoMessage() {} method ProtoReflect (line 56) | func (x *Fallback) ProtoReflect() protoreflect.Message { method Descriptor (line 69) | func (*Fallback) Descriptor() ([]byte, []int) { method GetAlpn (line 73) | func (x *Fallback) GetAlpn() string { method GetPath (line 80) | func (x *Fallback) GetPath() string { method GetType (line 87) | func (x *Fallback) GetType() string { method GetDest (line 94) | func (x *Fallback) GetDest() string { method GetXver (line 101) | func (x *Fallback) GetXver() uint64 { type Config (line 108) | type Config struct method Reset (line 120) | func (x *Config) Reset() { method String (line 129) | func (x *Config) String() string { method ProtoMessage (line 133) | func (*Config) ProtoMessage() {} method ProtoReflect (line 135) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 148) | func (*Config) Descriptor() ([]byte, []int) { method GetClients (line 152) | func (x *Config) GetClients() []*protocol.User { method GetDecryption (line 159) | func (x *Config) GetDecryption() string { method GetFallbacks (line 166) | func (x *Config) GetFallbacks() []*Fallback { function file_proxy_vless_inbound_config_proto_rawDescGZIP (line 215) | func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte { function init (line 238) | func init() { file_proxy_vless_inbound_config_proto_init() } function file_proxy_vless_inbound_config_proto_init (line 239) | func file_proxy_vless_inbound_config_proto_init() { FILE: proxy/vless/inbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vless/inbound/inbound.go function init (line 40) | func init() { type Handler (line 61) | type Handler struct method Close (line 126) | func (h *Handler) Close() error { method AddUser (line 131) | func (h *Handler) AddUser(ctx context.Context, u *protocol.MemoryUser)... method RemoveUser (line 136) | func (h *Handler) RemoveUser(ctx context.Context, e string) error { method Network (line 141) | func (*Handler) Network() []net.Network { method Process (line 146) | func (h *Handler) Process(ctx context.Context, network net.Network, co... function New (line 71) | func New(ctx context.Context, config *Config, dc dns.Client) (*Handler, ... FILE: proxy/vless/outbound/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 29) | type Config struct method Reset (line 37) | func (x *Config) Reset() { method String (line 46) | func (x *Config) String() string { method ProtoMessage (line 50) | func (*Config) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Config) Descriptor() ([]byte, []int) { method GetVnext (line 69) | func (x *Config) GetVnext() []*protocol.ServerEndpoint { function file_proxy_vless_outbound_config_proto_rawDescGZIP (line 105) | func file_proxy_vless_outbound_config_proto_rawDescGZIP() []byte { function init (line 126) | func init() { file_proxy_vless_outbound_config_proto_init() } function file_proxy_vless_outbound_config_proto_init (line 127) | func file_proxy_vless_outbound_config_proto_init() { FILE: proxy/vless/outbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vless/outbound/outbound.go function init (line 33) | func init() { type Handler (line 47) | type Handler struct method Process (line 76) | func (h *Handler) Process(ctx context.Context, link *transport.Link, d... function New (line 54) | func New(ctx context.Context, config *Config) (*Handler, error) { FILE: proxy/vless/validator.go type Validator (line 13) | type Validator struct method Add (line 19) | func (v *Validator) Add(u *protocol.MemoryUser) error { method Del (line 30) | func (v *Validator) Del(e string) error { method Get (line 44) | func (v *Validator) Get(id uuid.UUID) *protocol.MemoryUser { FILE: proxy/vless/vless.go constant XRO (line 11) | XRO = "xtls-rprx-origin" constant XRD (line 12) | XRD = "xtls-rprx-direct" FILE: proxy/vmess/account.go type MemoryAccount (line 12) | type MemoryAccount struct method AnyValidID (line 22) | func (a *MemoryAccount) AnyValidID() *protocol.ID { method Equals (line 30) | func (a *MemoryAccount) Equals(account protocol.Account) bool { method AsAccount (line 40) | func (a *Account) AsAccount() (protocol.Account, error) { FILE: proxy/vmess/account.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Account (line 29) | type Account struct method Reset (line 45) | func (x *Account) Reset() { method String (line 54) | func (x *Account) String() string { method ProtoMessage (line 58) | func (*Account) ProtoMessage() {} method ProtoReflect (line 60) | func (x *Account) ProtoReflect() protoreflect.Message { method Descriptor (line 73) | func (*Account) Descriptor() ([]byte, []int) { method GetId (line 77) | func (x *Account) GetId() string { method GetAlterId (line 84) | func (x *Account) GetAlterId() uint32 { method GetSecuritySettings (line 91) | func (x *Account) GetSecuritySettings() *protocol.SecurityConfig { method GetTestsEnabled (line 98) | func (x *Account) GetTestsEnabled() string { function file_proxy_vmess_account_proto_rawDescGZIP (line 138) | func file_proxy_vmess_account_proto_rawDescGZIP() []byte { function init (line 159) | func init() { file_proxy_vmess_account_proto_init() } function file_proxy_vmess_account_proto_init (line 160) | func file_proxy_vmess_account_proto_init() { FILE: proxy/vmess/aead/authid.go function CreateAuthID (line 18) | func CreateAuthID(cmdKey []byte, time int64) [16]byte { function NewCipherFromKey (line 34) | func NewCipherFromKey(cmdKey []byte) cipher.Block { type AuthIDDecoder (line 42) | type AuthIDDecoder struct method Decode (line 50) | func (aidd *AuthIDDecoder) Decode(data [16]byte) (int64, uint32, int32... function NewAuthIDDecoder (line 46) | func NewAuthIDDecoder(cmdKey []byte) *AuthIDDecoder { function NewAuthIDDecoderHolder (line 62) | func NewAuthIDDecoderHolder() *AuthIDDecoderHolder { type AuthIDDecoderHolder (line 66) | type AuthIDDecoderHolder struct method AddUser (line 83) | func (a *AuthIDDecoderHolder) AddUser(key [16]byte, ticket interface{}) { method RemoveUser (line 87) | func (a *AuthIDDecoderHolder) RemoveUser(key [16]byte) { method Match (line 91) | func (a *AuthIDDecoderHolder) Match(AuthID [16]byte) (interface{}, err... type AuthIDDecoderItem (line 71) | type AuthIDDecoderItem struct function NewAuthIDDecoderItem (line 76) | func NewAuthIDDecoderItem(key [16]byte, ticket interface{}) *AuthIDDecod... FILE: proxy/vmess/aead/authid_test.go function TestCreateAuthID (line 11) | func TestCreateAuthID(t *testing.T) { function TestCreateAuthIDAndDecode (line 19) | func TestCreateAuthIDAndDecode(t *testing.T) { function TestCreateAuthIDAndDecode2 (line 37) | func TestCreateAuthIDAndDecode2(t *testing.T) { function TestCreateAuthIDAndDecodeMassive (line 63) | func TestCreateAuthIDAndDecodeMassive(t *testing.T) { function TestCreateAuthIDAndDecodeSuperMassive (line 95) | func TestCreateAuthIDAndDecodeSuperMassive(t *testing.T) { FILE: proxy/vmess/aead/consts.go constant KDFSaltConst_AuthIDEncryptionKey (line 3) | KDFSaltConst_AuthIDEncryptionKey = "AES Auth ID Encryption" constant KDFSaltConst_AEADRespHeaderLenKey (line 5) | KDFSaltConst_AEADRespHeaderLenKey = "AEAD Resp Header Len Key" constant KDFSaltConst_AEADRespHeaderLenIV (line 7) | KDFSaltConst_AEADRespHeaderLenIV = "AEAD Resp Header Len IV" constant KDFSaltConst_AEADRespHeaderPayloadKey (line 9) | KDFSaltConst_AEADRespHeaderPayloadKey = "AEAD Resp Header Key" constant KDFSaltConst_AEADRespHeaderPayloadIV (line 11) | KDFSaltConst_AEADRespHeaderPayloadIV = "AEAD Resp Header IV" constant KDFSaltConst_VMessAEADKDF (line 13) | KDFSaltConst_VMessAEADKDF = "VMess AEAD KDF" constant KDFSaltConst_VMessHeaderPayloadAEADKey (line 15) | KDFSaltConst_VMessHeaderPayloadAEADKey = "VMess Header AEAD Key" constant KDFSaltConst_VMessHeaderPayloadAEADIV (line 17) | KDFSaltConst_VMessHeaderPayloadAEADIV = "VMess Header AEAD Nonce" constant KDFSaltConst_VMessHeaderPayloadLengthAEADKey (line 19) | KDFSaltConst_VMessHeaderPayloadLengthAEADKey = "VMess Header AEAD Key_Le... constant KDFSaltConst_VMessHeaderPayloadLengthAEADIV (line 21) | KDFSaltConst_VMessHeaderPayloadLengthAEADIV = "VMess Header AEAD Nonce_L... FILE: proxy/vmess/aead/encrypt.go function SealVMessAEADHeader (line 15) | func SealVMessAEADHeader(key [16]byte, data []byte) []byte { function OpenVMessAEADHeader (line 85) | func OpenVMessAEADHeader(key [16]byte, authid [16]byte, data io.Reader) ... FILE: proxy/vmess/aead/encrypt_test.go function TestOpenVMessAEADHeader (line 12) | func TestOpenVMessAEADHeader(t *testing.T) { function TestOpenVMessAEADHeader2 (line 31) | func TestOpenVMessAEADHeader2(t *testing.T) { function TestOpenVMessAEADHeader4 (line 50) | func TestOpenVMessAEADHeader4(t *testing.T) { function TestOpenVMessAEADHeader4Massive (line 78) | func TestOpenVMessAEADHeader4Massive(t *testing.T) { FILE: proxy/vmess/aead/kdf.go function KDF (line 9) | func KDF(key []byte, path ...string) []byte { function KDF16 (line 23) | func KDF16(key []byte, path ...string) []byte { FILE: proxy/vmess/encoding/auth.go function Authenticate (line 14) | func Authenticate(b []byte) uint32 { type NoOpAuthenticator (line 20) | type NoOpAuthenticator struct method NonceSize (line 22) | func (NoOpAuthenticator) NonceSize() int { method Overhead (line 26) | func (NoOpAuthenticator) Overhead() int { method Seal (line 31) | func (NoOpAuthenticator) Seal(dst, nonce, plaintext, additionalData []... method Open (line 36) | func (NoOpAuthenticator) Open(dst, nonce, ciphertext, additionalData [... type FnvAuthenticator (line 41) | type FnvAuthenticator struct method NonceSize (line 45) | func (*FnvAuthenticator) NonceSize() int { method Overhead (line 50) | func (*FnvAuthenticator) Overhead() int { method Seal (line 55) | func (*FnvAuthenticator) Seal(dst, nonce, plaintext, additionalData []... method Open (line 62) | func (*FnvAuthenticator) Open(dst, nonce, ciphertext, additionalData [... function GenerateChacha20Poly1305Key (line 70) | func GenerateChacha20Poly1305Key(b []byte) []byte { type ShakeSizeParser (line 79) | type ShakeSizeParser struct method SizeBytes (line 92) | func (*ShakeSizeParser) SizeBytes() int32 { method next (line 96) | func (s *ShakeSizeParser) next() uint16 { method Decode (line 101) | func (s *ShakeSizeParser) Decode(b []byte) (uint16, error) { method Encode (line 107) | func (s *ShakeSizeParser) Encode(size uint16, b []byte) []byte { method NextPaddingLen (line 113) | func (s *ShakeSizeParser) NextPaddingLen() uint16 { method MaxPaddingLen (line 117) | func (s *ShakeSizeParser) MaxPaddingLen() uint16 { function NewShakeSizeParser (line 84) | func NewShakeSizeParser(nonce []byte) *ShakeSizeParser { FILE: proxy/vmess/encoding/auth_test.go function TestFnvAuth (line 13) | func TestFnvAuth(t *testing.T) { FILE: proxy/vmess/encoding/client.go function hashTimestamp (line 29) | func hashTimestamp(h hash.Hash, t protocol.Timestamp) []byte { type ClientSession (line 38) | type ClientSession struct method EncodeRequestHeader (line 76) | func (c *ClientSession) EncodeRequestHeader(header *protocol.RequestHe... method EncodeRequestBody (line 130) | func (c *ClientSession) EncodeRequestBody(request *protocol.RequestHea... method DecodeResponseHeader (line 191) | func (c *ClientSession) DecodeResponseHeader(reader io.Reader) (*proto... method DecodeResponseBody (line 270) | func (c *ClientSession) DecodeResponseBody(request *protocol.RequestHe... function NewClientSession (line 50) | func NewClientSession(isAEAD bool, idHash protocol.IDHash, ctx context.C... function GenerateChunkNonce (line 331) | func GenerateChunkNonce(nonce []byte, size uint32) crypto.BytesGenerator { FILE: proxy/vmess/encoding/commands.go function MarshalCommand (line 21) | func MarshalCommand(command interface{}, writer io.Writer) error { function UnmarshalCommand (line 55) | func UnmarshalCommand(cmdID byte, data []byte) (protocol.ResponseCommand... type CommandFactory (line 75) | type CommandFactory interface type CommandSwitchAccountFactory (line 80) | type CommandSwitchAccountFactory struct method Marshal (line 83) | func (f *CommandSwitchAccountFactory) Marshal(command interface{}, wri... method Unmarshal (line 110) | func (f *CommandSwitchAccountFactory) Unmarshal(data []byte) (interfac... FILE: proxy/vmess/encoding/commands_test.go function TestSwitchAccount (line 15) | func TestSwitchAccount(t *testing.T) { FILE: proxy/vmess/encoding/encoding.go constant Version (line 11) | Version = byte(1) FILE: proxy/vmess/encoding/encoding_test.go function toAccount (line 18) | func toAccount(a *vmess.Account) protocol.Account { function TestRequestSerialization (line 24) | func TestRequestSerialization(t *testing.T) { function TestInvalidRequest (line 74) | func TestInvalidRequest(t *testing.T) { function TestMuxRequest (line 116) | func TestMuxRequest(t *testing.T) { FILE: proxy/vmess/encoding/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vmess/encoding/server.go type sessionId (line 29) | type sessionId struct type SessionHistory (line 36) | type SessionHistory struct method Close (line 55) | func (h *SessionHistory) Close() error { method addIfNotExits (line 59) | func (h *SessionHistory) addIfNotExits(session sessionId) bool { method removeExpiredEntries (line 73) | func (h *SessionHistory) removeExpiredEntries() error { function NewSessionHistory (line 43) | func NewSessionHistory() *SessionHistory { type ServerSession (line 97) | type ServerSession struct method DecodeRequestHeader (line 134) | func (s *ServerSession) DecodeRequestHeader(reader io.Reader) (*protoc... method DecodeRequestBody (line 306) | func (s *ServerSession) DecodeRequestBody(request *protocol.RequestHea... method EncodeResponseHeader (line 369) | func (s *ServerSession) EncodeResponseHeader(header *protocol.Response... method EncodeResponseBody (line 426) | func (s *ServerSession) EncodeResponseBody(request *protocol.RequestHe... method DrainConnN (line 486) | func (s *ServerSession) DrainConnN(reader io.Reader, n int) error { function NewServerSession (line 114) | func NewServerSession(validator *vmess.TimedUserValidator, sessionHistor... function parseSecurityType (line 121) | func parseSecurityType(b byte) protocol.SecurityType { FILE: proxy/vmess/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vmess/inbound/config.go method GetDefaultValue (line 6) | func (c *Config) GetDefaultValue() *DefaultConfig { FILE: proxy/vmess/inbound/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type DetourConfig (line 29) | type DetourConfig struct method Reset (line 37) | func (x *DetourConfig) Reset() { method String (line 46) | func (x *DetourConfig) String() string { method ProtoMessage (line 50) | func (*DetourConfig) ProtoMessage() {} method ProtoReflect (line 52) | func (x *DetourConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*DetourConfig) Descriptor() ([]byte, []int) { method GetTo (line 69) | func (x *DetourConfig) GetTo() string { type DefaultConfig (line 76) | type DefaultConfig struct method Reset (line 85) | func (x *DefaultConfig) Reset() { method String (line 94) | func (x *DefaultConfig) String() string { method ProtoMessage (line 98) | func (*DefaultConfig) ProtoMessage() {} method ProtoReflect (line 100) | func (x *DefaultConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 113) | func (*DefaultConfig) Descriptor() ([]byte, []int) { method GetAlterId (line 117) | func (x *DefaultConfig) GetAlterId() uint32 { method GetLevel (line 124) | func (x *DefaultConfig) GetLevel() uint32 { type Config (line 131) | type Config struct method Reset (line 142) | func (x *Config) Reset() { method String (line 151) | func (x *Config) String() string { method ProtoMessage (line 155) | func (*Config) ProtoMessage() {} method ProtoReflect (line 157) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 170) | func (*Config) Descriptor() ([]byte, []int) { method GetUser (line 174) | func (x *Config) GetUser() []*protocol.User { method GetDefault (line 181) | func (x *Config) GetDefault() *DefaultConfig { method GetDetour (line 188) | func (x *Config) GetDetour() *DetourConfig { method GetSecureEncryptionOnly (line 195) | func (x *Config) GetSecureEncryptionOnly() bool { function file_proxy_vmess_inbound_config_proto_rawDescGZIP (line 248) | func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte { function init (line 273) | func init() { file_proxy_vmess_inbound_config_proto_init() } function file_proxy_vmess_inbound_config_proto_init (line 274) | func file_proxy_vmess_inbound_config_proto_init() { FILE: proxy/vmess/inbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vmess/inbound/inbound.go type userByEmail (line 33) | type userByEmail struct method addNoLock (line 48) | func (v *userByEmail) addNoLock(u *protocol.MemoryUser) bool { method Add (line 58) | func (v *userByEmail) Add(u *protocol.MemoryUser) bool { method Get (line 65) | func (v *userByEmail) Get(email string) (*protocol.MemoryUser, bool) { method Remove (line 90) | func (v *userByEmail) Remove(email string) bool { function newUserByEmail (line 40) | func newUserByEmail(config *DefaultConfig) *userByEmail { type Handler (line 104) | type Handler struct method Close (line 142) | func (h *Handler) Close() error { method Network (line 150) | func (*Handler) Network() []net.Network { method GetUser (line 154) | func (h *Handler) GetUser(email string) *protocol.MemoryUser { method AddUser (line 162) | func (h *Handler) AddUser(ctx context.Context, user *protocol.MemoryUs... method RemoveUser (line 169) | func (h *Handler) RemoveUser(ctx context.Context, email string) error { method Process (line 219) | func (h *Handler) Process(ctx context.Context, network net.Network, co... method generateCommand (line 317) | func (h *Handler) generateCommand(ctx context.Context, request *protoc... function New (line 115) | func New(ctx context.Context, config *Config) (*Handler, error) { function transferResponse (line 180) | func transferResponse(timer signal.ActivityUpdater, session *encoding.Se... function isInsecureEncryption (line 214) | func isInsecureEncryption(s protocol.SecurityType) bool { function init (line 353) | func init() { FILE: proxy/vmess/outbound/command.go method handleSwitchAccount (line 14) | func (h *Handler) handleSwitchAccount(cmd *protocol.CommandSwitchAccount) { method handleCommand (line 35) | func (h *Handler) handleCommand(dest net.Destination, cmd protocol.Respo... FILE: proxy/vmess/outbound/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 29) | type Config struct method Reset (line 37) | func (x *Config) Reset() { method String (line 46) | func (x *Config) String() string { method ProtoMessage (line 50) | func (*Config) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Config) Descriptor() ([]byte, []int) { method GetReceiver (line 69) | func (x *Config) GetReceiver() []*protocol.ServerEndpoint { function file_proxy_vmess_outbound_config_proto_rawDescGZIP (line 106) | func file_proxy_vmess_outbound_config_proto_rawDescGZIP() []byte { function init (line 127) | func init() { file_proxy_vmess_outbound_config_proto_init() } function file_proxy_vmess_outbound_config_proto_init (line 128) | func file_proxy_vmess_outbound_config_proto_init() { FILE: proxy/vmess/outbound/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: proxy/vmess/outbound/outbound.go type Handler (line 29) | type Handler struct method Process (line 57) | func (h *Handler) Process(ctx context.Context, link *transport.Link, d... function New (line 36) | func New(ctx context.Context, config *Config) (*Handler, error) { function shouldEnablePadding (line 185) | func shouldEnablePadding(s protocol.SecurityType) bool { function init (line 189) | func init() { FILE: proxy/vmess/validator.go constant updateInterval (line 24) | updateInterval = 10 * time.Second constant cacheDurationSec (line 25) | cacheDurationSec = 120 type user (line 28) | type user struct type TimedUserValidator (line 34) | type TimedUserValidator struct method generateNewHashes (line 75) | func (v *TimedUserValidator) generateNewHashes(nowSec protocol.Timesta... method removeExpiredHashes (line 106) | func (v *TimedUserValidator) removeExpiredHashes(expire uint32) { method updateUserHash (line 114) | func (v *TimedUserValidator) updateUserHash() { method Add (line 130) | func (v *TimedUserValidator) Add(u *protocol.MemoryUser) error { method Get (line 157) | func (v *TimedUserValidator) Get(userHash []byte) (*protocol.MemoryUse... method GetAEAD (line 176) | func (v *TimedUserValidator) GetAEAD(userHash []byte) (*protocol.Memor... method Remove (line 189) | func (v *TimedUserValidator) Remove(email string) bool { method Close (line 216) | func (v *TimedUserValidator) Close() error { method GetBehaviorSeed (line 220) | func (v *TimedUserValidator) GetBehaviorSeed() uint64 { method BurnTaintFuse (line 230) | func (v *TimedUserValidator) BurnTaintFuse(userHash []byte) error { type indexTimePair (line 48) | type indexTimePair struct function NewTimedUserValidator (line 56) | func NewTimedUserValidator(hasher protocol.IDHash) *TimedUserValidator { FILE: proxy/vmess/validator_test.go function toAccount (line 14) | func toAccount(a *Account) protocol.Account { function TestUserValidator (line 20) | func TestUserValidator(t *testing.T) { function BenchmarkUserValidator (line 92) | func BenchmarkUserValidator(b *testing.B) { FILE: proxy/vmess/vmessCtxInterface.go constant AlterID (line 4) | AlterID = "VMessCtxInterface_AlterID" FILE: testing/mocks/dns.go type DNSClient (line 14) | type DNSClient struct method EXPECT (line 32) | func (m *DNSClient) EXPECT() *DNSClientMockRecorder { method Close (line 37) | func (m *DNSClient) Close() error { method LookupIP (line 51) | func (m *DNSClient) LookupIP(arg0 string) ([]net.IP, error) { method Start (line 66) | func (m *DNSClient) Start() error { method Type (line 80) | func (m *DNSClient) Type() interface{} { type DNSClientMockRecorder (line 20) | type DNSClientMockRecorder struct method Close (line 45) | func (mr *DNSClientMockRecorder) Close() *gomock.Call { method LookupIP (line 60) | func (mr *DNSClientMockRecorder) LookupIP(arg0 interface{}) *gomock.Ca... method Start (line 74) | func (mr *DNSClientMockRecorder) Start() *gomock.Call { method Type (line 88) | func (mr *DNSClientMockRecorder) Type() *gomock.Call { function NewDNSClient (line 25) | func NewDNSClient(ctrl *gomock.Controller) *DNSClient { FILE: testing/mocks/io.go type Reader (line 13) | type Reader struct method EXPECT (line 31) | func (m *Reader) EXPECT() *ReaderMockRecorder { method Read (line 36) | func (m *Reader) Read(arg0 []byte) (int, error) { type ReaderMockRecorder (line 19) | type ReaderMockRecorder struct method Read (line 45) | func (mr *ReaderMockRecorder) Read(arg0 interface{}) *gomock.Call { function NewReader (line 24) | func NewReader(ctrl *gomock.Controller) *Reader { type Writer (line 51) | type Writer struct method EXPECT (line 69) | func (m *Writer) EXPECT() *WriterMockRecorder { method Write (line 74) | func (m *Writer) Write(arg0 []byte) (int, error) { type WriterMockRecorder (line 57) | type WriterMockRecorder struct method Write (line 83) | func (mr *WriterMockRecorder) Write(arg0 interface{}) *gomock.Call { function NewWriter (line 62) | func NewWriter(ctrl *gomock.Controller) *Writer { FILE: testing/mocks/log.go type LogHandler (line 14) | type LogHandler struct method EXPECT (line 32) | func (m *LogHandler) EXPECT() *LogHandlerMockRecorder { method Handle (line 37) | func (m *LogHandler) Handle(arg0 log.Message) { type LogHandlerMockRecorder (line 20) | type LogHandlerMockRecorder struct method Handle (line 43) | func (mr *LogHandlerMockRecorder) Handle(arg0 interface{}) *gomock.Call { function NewLogHandler (line 25) | func NewLogHandler(ctrl *gomock.Controller) *LogHandler { FILE: testing/mocks/mux.go type MuxClientWorkerFactory (line 14) | type MuxClientWorkerFactory struct method EXPECT (line 32) | func (m *MuxClientWorkerFactory) EXPECT() *MuxClientWorkerFactoryMockR... method Create (line 37) | func (m *MuxClientWorkerFactory) Create() (*mux.ClientWorker, error) { type MuxClientWorkerFactoryMockRecorder (line 20) | type MuxClientWorkerFactoryMockRecorder struct method Create (line 46) | func (mr *MuxClientWorkerFactoryMockRecorder) Create() *gomock.Call { function NewMuxClientWorkerFactory (line 25) | func NewMuxClientWorkerFactory(ctrl *gomock.Controller) *MuxClientWorker... FILE: testing/mocks/outbound.go type OutboundManager (line 15) | type OutboundManager struct method EXPECT (line 33) | func (m *OutboundManager) EXPECT() *OutboundManagerMockRecorder { method AddHandler (line 38) | func (m *OutboundManager) AddHandler(arg0 context.Context, arg1 outbou... method Close (line 52) | func (m *OutboundManager) Close() error { method GetDefaultHandler (line 66) | func (m *OutboundManager) GetDefaultHandler() outbound.Handler { method GetHandler (line 80) | func (m *OutboundManager) GetHandler(arg0 string) outbound.Handler { method RemoveHandler (line 94) | func (m *OutboundManager) RemoveHandler(arg0 context.Context, arg1 str... method Start (line 108) | func (m *OutboundManager) Start() error { method Type (line 122) | func (m *OutboundManager) Type() interface{} { type OutboundManagerMockRecorder (line 21) | type OutboundManagerMockRecorder struct method AddHandler (line 46) | func (mr *OutboundManagerMockRecorder) AddHandler(arg0, arg1 interface... method Close (line 60) | func (mr *OutboundManagerMockRecorder) Close() *gomock.Call { method GetDefaultHandler (line 74) | func (mr *OutboundManagerMockRecorder) GetDefaultHandler() *gomock.Call { method GetHandler (line 88) | func (mr *OutboundManagerMockRecorder) GetHandler(arg0 interface{}) *g... method RemoveHandler (line 102) | func (mr *OutboundManagerMockRecorder) RemoveHandler(arg0, arg1 interf... method Start (line 116) | func (mr *OutboundManagerMockRecorder) Start() *gomock.Call { method Type (line 130) | func (mr *OutboundManagerMockRecorder) Type() *gomock.Call { function NewOutboundManager (line 26) | func NewOutboundManager(ctrl *gomock.Controller) *OutboundManager { type OutboundHandlerSelector (line 136) | type OutboundHandlerSelector struct method EXPECT (line 154) | func (m *OutboundHandlerSelector) EXPECT() *OutboundHandlerSelectorMoc... method Select (line 159) | func (m *OutboundHandlerSelector) Select(arg0 []string) []string { type OutboundHandlerSelectorMockRecorder (line 142) | type OutboundHandlerSelectorMockRecorder struct method Select (line 167) | func (mr *OutboundHandlerSelectorMockRecorder) Select(arg0 interface{}... function NewOutboundHandlerSelector (line 147) | func NewOutboundHandlerSelector(ctrl *gomock.Controller) *OutboundHandle... FILE: testing/mocks/proxy.go type ProxyInbound (line 18) | type ProxyInbound struct method EXPECT (line 36) | func (m *ProxyInbound) EXPECT() *ProxyInboundMockRecorder { method Network (line 41) | func (m *ProxyInbound) Network() []net.Network { method Process (line 55) | func (m *ProxyInbound) Process(arg0 context.Context, arg1 net.Network,... type ProxyInboundMockRecorder (line 24) | type ProxyInboundMockRecorder struct method Network (line 49) | func (mr *ProxyInboundMockRecorder) Network() *gomock.Call { method Process (line 63) | func (mr *ProxyInboundMockRecorder) Process(arg0, arg1, arg2, arg3 int... function NewProxyInbound (line 29) | func NewProxyInbound(ctrl *gomock.Controller) *ProxyInbound { type ProxyOutbound (line 69) | type ProxyOutbound struct method EXPECT (line 87) | func (m *ProxyOutbound) EXPECT() *ProxyOutboundMockRecorder { method Process (line 92) | func (m *ProxyOutbound) Process(arg0 context.Context, arg1 *transport.... type ProxyOutboundMockRecorder (line 75) | type ProxyOutboundMockRecorder struct method Process (line 100) | func (mr *ProxyOutboundMockRecorder) Process(arg0, arg1, arg2 interfac... function NewProxyOutbound (line 80) | func NewProxyOutbound(ctrl *gomock.Controller) *ProxyOutbound { FILE: testing/scenarios/command_test.go function TestCommanderRemoveHandler (line 36) | func TestCommanderRemoveHandler(t *testing.T) { function TestCommanderAddRemoveUser (line 131) | func TestCommanderAddRemoveUser(t *testing.T) { function TestCommanderStats (line 313) | func TestCommanderStats(t *testing.T) { FILE: testing/scenarios/common.go function xor (line 28) | func xor(b []byte) []byte { function readFrom (line 36) | func readFrom(conn net.Conn, timeout time.Duration, length int) []byte { function readFrom2 (line 47) | func readFrom2(conn net.Conn, timeout time.Duration, length int) ([]byte... function InitializeServerConfigs (line 58) | func InitializeServerConfigs(configs ...*core.Config) ([]*exec.Cmd, erro... function InitializeServerConfig (line 75) | func InitializeServerConfig(config *core.Config) (*exec.Cmd, error) { function genTestBinaryPath (line 100) | func genTestBinaryPath() { function GetSourcePath (line 120) | func GetSourcePath() string { function CloseAllServers (line 124) | func CloseAllServers(servers []*exec.Cmd) { function withDefaultApps (line 145) | func withDefaultApps(config *core.Config) *core.Config { function testTCPConn (line 152) | func testTCPConn(port net.Port, payloadSize int, timeout time.Duration) ... function testUDPConn (line 167) | func testUDPConn(port net.Port, payloadSize int, timeout time.Duration) ... function testTCPConn2 (line 182) | func testTCPConn2(conn net.Conn, payloadSize int, timeout time.Duration)... FILE: testing/scenarios/common_coverage.go function BuildV2Ray (line 13) | func BuildV2Ray() error { function RunV2RayProtobuf (line 23) | func RunV2RayProtobuf(config []byte) *exec.Cmd { FILE: testing/scenarios/common_regular.go function BuildV2Ray (line 12) | func BuildV2Ray() error { function RunV2RayProtobuf (line 23) | func RunV2RayProtobuf(config []byte) *exec.Cmd { FILE: testing/scenarios/dns_test.go function TestResolveIP (line 22) | func TestResolveIP(t *testing.T) { FILE: testing/scenarios/dokodemo_test.go function TestDokodemoTCP (line 27) | func TestDokodemoTCP(t *testing.T) { function TestDokodemoUDP (line 124) | func TestDokodemoUDP(t *testing.T) { FILE: testing/scenarios/feature_test.go function TestPassiveConnection (line 38) | func TestPassiveConnection(t *testing.T) { function TestProxy (line 95) | func TestProxy(t *testing.T) { function TestProxyOverKCP (line 227) | func TestProxyOverKCP(t *testing.T) { function TestBlackhole (line 370) | func TestBlackhole(t *testing.T) { function TestForward (line 449) | func TestForward(t *testing.T) { function TestUDPConnection (line 506) | func TestUDPConnection(t *testing.T) { function TestDomainSniffing (line 553) | func TestDomainSniffing(t *testing.T) { function TestDialV2Ray (line 648) | func TestDialV2Ray(t *testing.T) { FILE: testing/scenarios/http_test.go function TestHttpConformance (line 27) | func TestHttpConformance(t *testing.T) { function TestHttpError (line 84) | func TestHttpError(t *testing.T) { function TestHttpConnectMethod (line 139) | func TestHttpConnectMethod(t *testing.T) { function TestHttpPost (line 201) | func TestHttpPost(t *testing.T) { function setProxyBasicAuth (line 275) | func setProxyBasicAuth(req *http.Request, user, pass string) { function TestHttpBasicAuth (line 281) | func TestHttpBasicAuth(t *testing.T) { FILE: testing/scenarios/policy_test.go function startQuickClosingTCPServer (line 28) | func startQuickClosingTCPServer() (net.Listener, error) { function TestVMessClosing (line 47) | func TestVMessClosing(t *testing.T) { function TestZeroBuffer (line 157) | func TestZeroBuffer(t *testing.T) { FILE: testing/scenarios/reverse_test.go function TestReverseProxy (line 30) | func TestReverseProxy(t *testing.T) { function TestReverseProxyLongRunning (line 201) | func TestReverseProxyLongRunning(t *testing.T) { FILE: testing/scenarios/shadowsocks_test.go function TestShadowsocksAES256TCP (line 27) | func TestShadowsocksAES256TCP(t *testing.T) { function TestShadowsocksAES128UDP (line 125) | func TestShadowsocksAES128UDP(t *testing.T) { function TestShadowsocksChacha20TCP (line 250) | func TestShadowsocksChacha20TCP(t *testing.T) { function TestShadowsocksChacha20Poly1305TCP (line 350) | func TestShadowsocksChacha20Poly1305TCP(t *testing.T) { function TestShadowsocksAES256GCMTCP (line 436) | func TestShadowsocksAES256GCMTCP(t *testing.T) { function TestShadowsocksAES128GCMUDP (line 535) | func TestShadowsocksAES128GCMUDP(t *testing.T) { function TestShadowsocksAES128GCMUDPMux (line 633) | func TestShadowsocksAES128GCMUDPMux(t *testing.T) { function TestShadowsocksNone (line 737) | func TestShadowsocksNone(t *testing.T) { FILE: testing/scenarios/socks_test.go function TestSocksBridgeTCP (line 25) | func TestSocksBridgeTCP(t *testing.T) { function TestSocksBridageUDP (line 106) | func TestSocksBridageUDP(t *testing.T) { function TestSocksBridageUDPWithRouting (line 187) | func TestSocksBridageUDPWithRouting(t *testing.T) { function TestSocksConformanceMod (line 274) | func TestSocksConformanceMod(t *testing.T) { FILE: testing/scenarios/tls_test.go function TestSimpleTLSConnection (line 32) | func TestSimpleTLSConnection(t *testing.T) { function TestAutoIssuingCertificate (line 132) | func TestAutoIssuingCertificate(t *testing.T) { function TestTLSOverKCP (line 255) | func TestTLSOverKCP(t *testing.T) { function TestTLSOverWebSocket (line 357) | func TestTLSOverWebSocket(t *testing.T) { function TestHTTP2 (line 469) | func TestHTTP2(t *testing.T) { FILE: testing/scenarios/transport_test.go function TestHttpConnectionHeader (line 34) | func TestHttpConnectionHeader(t *testing.T) { function TestDomainSocket (line 138) | func TestDomainSocket(t *testing.T) { function TestVMessQuic (line 251) | func TestVMessQuic(t *testing.T) { FILE: testing/scenarios/vmess_test.go function TestVMessDynamicPort (line 29) | func TestVMessDynamicPort(t *testing.T) { function TestVMessGCM (line 148) | func TestVMessGCM(t *testing.T) { function TestVMessGCMReadv (line 254) | func TestVMessGCMReadv(t *testing.T) { function TestVMessGCMUDP (line 363) | func TestVMessGCMUDP(t *testing.T) { function TestVMessChacha20 (line 466) | func TestVMessChacha20(t *testing.T) { function TestVMessNone (line 570) | func TestVMessNone(t *testing.T) { function TestVMessKCP (line 673) | func TestVMessKCP(t *testing.T) { function TestVMessKCPLarge (line 784) | func TestVMessKCPLarge(t *testing.T) { function TestVMessGCMMux (line 937) | func TestVMessGCMMux(t *testing.T) { function TestVMessGCMMuxUDP (line 1049) | func TestVMessGCMMuxUDP(t *testing.T) { FILE: testing/servers/http/http.go type Server (line 9) | type Server struct method ServeHTTP (line 15) | func (s *Server) ServeHTTP(resp http.ResponseWriter, req *http.Request) { method Start (line 29) | func (s *Server) Start() (net.Destination, error) { method Close (line 38) | func (s *Server) Close() error { FILE: testing/servers/tcp/port.go function PickPort (line 9) | func PickPort() net.Port { FILE: testing/servers/tcp/tcp.go type Server (line 15) | type Server struct method Start (line 24) | func (server *Server) Start() (net.Destination, error) { method StartContext (line 28) | func (server *Server) StartContext(ctx context.Context, sockopt *inter... method acceptConnections (line 49) | func (server *Server) acceptConnections(listener *net.TCPListener) { method handleConnection (line 61) | func (server *Server) handleConnection(conn net.Conn) { method Close (line 108) | func (server *Server) Close() error { FILE: testing/servers/udp/port.go function PickPort (line 9) | func PickPort() net.Port { FILE: testing/servers/udp/udp.go type Server (line 9) | type Server struct method Start (line 16) | func (server *Server) Start() (net.Destination, error) { method handleConnection (line 34) | func (server *Server) handleConnection(conn *net.UDPConn) { method Close (line 51) | func (server *Server) Close() error { FILE: transport/config.go method Apply (line 8) | func (c *Config) Apply() error { FILE: transport/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 31) | type Config struct method Reset (line 39) | func (x *Config) Reset() { method String (line 48) | func (x *Config) String() string { method ProtoMessage (line 52) | func (*Config) ProtoMessage() {} method ProtoReflect (line 54) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 67) | func (*Config) Descriptor() ([]byte, []int) { method GetTransportSettings (line 71) | func (x *Config) GetTransportSettings() []*internet.TransportConfig { function file_transport_config_proto_rawDescGZIP (line 105) | func file_transport_config_proto_rawDescGZIP() []byte { function init (line 126) | func init() { file_transport_config_proto_init() } function file_transport_config_proto_init (line 127) | func file_transport_config_proto_init() { FILE: transport/internet/config.go type ConfigCreator (line 8) | type ConfigCreator constant unknownProtocol (line 15) | unknownProtocol = "unknown" function transportProtocolToString (line 17) | func transportProtocolToString(protocol TransportProtocol) string { function RegisterProtocolConfigCreator (line 36) | func RegisterProtocolConfigCreator(name string, creator ConfigCreator) e... function CreateTransportConfig (line 44) | func CreateTransportConfig(name string) (interface{}, error) { method GetTypedSettings (line 52) | func (c *TransportConfig) GetTypedSettings() (interface{}, error) { method GetUnifiedProtocolName (line 56) | func (c *TransportConfig) GetUnifiedProtocolName() string { method GetEffectiveProtocol (line 64) | func (c *StreamConfig) GetEffectiveProtocol() string { method GetEffectiveTransportSettings (line 76) | func (c *StreamConfig) GetEffectiveTransportSettings() (interface{}, err... method GetTransportSettingsFor (line 81) | func (c *StreamConfig) GetTransportSettingsFor(protocol string) (interfa... method GetEffectiveSecuritySettings (line 99) | func (c *StreamConfig) GetEffectiveSecuritySettings() (interface{}, erro... method HasSecuritySettings (line 108) | func (c *StreamConfig) HasSecuritySettings() bool { function ApplyGlobalTransportSettings (line 112) | func ApplyGlobalTransportSettings(settings []*TransportConfig) error { method HasTag (line 118) | func (c *ProxyConfig) HasTag() bool { method IsEnabled (line 122) | func (m SocketConfig_TProxyMode) IsEnabled() bool { FILE: transport/internet/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type TransportProtocol (line 29) | type TransportProtocol method Enum (line 60) | func (x TransportProtocol) Enum() *TransportProtocol { method String (line 66) | func (x TransportProtocol) String() string { method Descriptor (line 70) | func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor { method Type (line 74) | func (TransportProtocol) Type() protoreflect.EnumType { method Number (line 78) | func (x TransportProtocol) Number() protoreflect.EnumNumber { method EnumDescriptor (line 83) | func (TransportProtocol) EnumDescriptor() ([]byte, []int) { constant TransportProtocol_TCP (line 32) | TransportProtocol_TCP TransportProtocol = 0 constant TransportProtocol_UDP (line 33) | TransportProtocol_UDP TransportProtocol = 1 constant TransportProtocol_MKCP (line 34) | TransportProtocol_MKCP TransportProtocol = 2 constant TransportProtocol_WebSocket (line 35) | TransportProtocol_WebSocket TransportProtocol = 3 constant TransportProtocol_HTTP (line 36) | TransportProtocol_HTTP TransportProtocol = 4 constant TransportProtocol_DomainSocket (line 37) | TransportProtocol_DomainSocket TransportProtocol = 5 type SocketConfig_TCPFastOpenState (line 87) | type SocketConfig_TCPFastOpenState method Enum (line 112) | func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpe... method String (line 118) | func (x SocketConfig_TCPFastOpenState) String() string { method Descriptor (line 122) | func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDes... method Type (line 126) | func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType { method Number (line 130) | func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber { method EnumDescriptor (line 135) | func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) { constant SocketConfig_AsIs (line 91) | SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0 constant SocketConfig_Enable (line 93) | SocketConfig_Enable SocketConfig_TCPFastOpenState = 1 constant SocketConfig_Disable (line 95) | SocketConfig_Disable SocketConfig_TCPFastOpenState = 2 type SocketConfig_TProxyMode (line 139) | type SocketConfig_TProxyMode method Enum (line 164) | func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode { method String (line 170) | func (x SocketConfig_TProxyMode) String() string { method Descriptor (line 174) | func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor { method Type (line 178) | func (SocketConfig_TProxyMode) Type() protoreflect.EnumType { method Number (line 182) | func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber { method EnumDescriptor (line 187) | func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) { constant SocketConfig_Off (line 143) | SocketConfig_Off SocketConfig_TProxyMode = 0 constant SocketConfig_TProxy (line 145) | SocketConfig_TProxy SocketConfig_TProxyMode = 1 constant SocketConfig_Redirect (line 147) | SocketConfig_Redirect SocketConfig_TProxyMode = 2 type TransportConfig (line 191) | type TransportConfig struct method Reset (line 205) | func (x *TransportConfig) Reset() { method String (line 214) | func (x *TransportConfig) String() string { method ProtoMessage (line 218) | func (*TransportConfig) ProtoMessage() {} method ProtoReflect (line 220) | func (x *TransportConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 233) | func (*TransportConfig) Descriptor() ([]byte, []int) { method GetProtocol (line 237) | func (x *TransportConfig) GetProtocol() TransportProtocol { method GetProtocolName (line 244) | func (x *TransportConfig) GetProtocolName() string { method GetSettings (line 251) | func (x *TransportConfig) GetSettings() *serial.TypedMessage { type StreamConfig (line 258) | type StreamConfig struct method Reset (line 277) | func (x *StreamConfig) Reset() { method String (line 286) | func (x *StreamConfig) String() string { method ProtoMessage (line 290) | func (*StreamConfig) ProtoMessage() {} method ProtoReflect (line 292) | func (x *StreamConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 305) | func (*StreamConfig) Descriptor() ([]byte, []int) { method GetProtocol (line 310) | func (x *StreamConfig) GetProtocol() TransportProtocol { method GetProtocolName (line 317) | func (x *StreamConfig) GetProtocolName() string { method GetTransportSettings (line 324) | func (x *StreamConfig) GetTransportSettings() []*TransportConfig { method GetSecurityType (line 331) | func (x *StreamConfig) GetSecurityType() string { method GetSecuritySettings (line 338) | func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage { method GetSocketSettings (line 345) | func (x *StreamConfig) GetSocketSettings() *SocketConfig { type ProxyConfig (line 352) | type ProxyConfig struct method Reset (line 360) | func (x *ProxyConfig) Reset() { method String (line 369) | func (x *ProxyConfig) String() string { method ProtoMessage (line 373) | func (*ProxyConfig) ProtoMessage() {} method ProtoReflect (line 375) | func (x *ProxyConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 388) | func (*ProxyConfig) Descriptor() ([]byte, []int) { method GetTag (line 392) | func (x *ProxyConfig) GetTag() string { type SocketConfig (line 400) | type SocketConfig struct method Reset (line 418) | func (x *SocketConfig) Reset() { method String (line 427) | func (x *SocketConfig) String() string { method ProtoMessage (line 431) | func (*SocketConfig) ProtoMessage() {} method ProtoReflect (line 433) | func (x *SocketConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 446) | func (*SocketConfig) Descriptor() ([]byte, []int) { method GetMark (line 450) | func (x *SocketConfig) GetMark() int32 { method GetTfo (line 457) | func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState { method GetTproxy (line 464) | func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode { method GetReceiveOriginalDestAddress (line 471) | func (x *SocketConfig) GetReceiveOriginalDestAddress() bool { method GetBindAddress (line 478) | func (x *SocketConfig) GetBindAddress() []byte { method GetBindPort (line 485) | func (x *SocketConfig) GetBindPort() uint32 { function file_transport_internet_config_proto_rawDescGZIP (line 591) | func file_transport_internet_config_proto_rawDescGZIP() []byte { function init (line 626) | func init() { file_transport_internet_config_proto_init() } function file_transport_internet_config_proto_init (line 627) | func file_transport_internet_config_proto_init() { FILE: transport/internet/connection.go type Connection (line 9) | type Connection interface type StatCouterConnection (line 13) | type StatCouterConnection struct method Read (line 19) | func (c *StatCouterConnection) Read(b []byte) (int, error) { method Write (line 28) | func (c *StatCouterConnection) Write(b []byte) (int, error) { FILE: transport/internet/dialer.go type Dialer (line 11) | type Dialer interface type dialFunc (line 20) | type dialFunc function RegisterTransportDialer (line 27) | func RegisterTransportDialer(protocol string, dialer dialFunc) error { function Dial (line 36) | func Dial(ctx context.Context, dest net.Destination, streamSettings *Mem... function DialSystem (line 66) | func DialSystem(ctx context.Context, dest net.Destination, sockopt *Sock... FILE: transport/internet/dialer_test.go function TestDialWithLocalAddr (line 15) | func TestDialWithLocalAddr(t *testing.T) { FILE: transport/internet/domainsocket/config.go constant protocolName (line 11) | protocolName = "domainsocket" constant sizeofSunPath (line 12) | sizeofSunPath = 108 method GetUnixAddr (line 14) | func (c *Config) GetUnixAddr() (*net.UnixAddr, error) { function init (line 36) | func init() { FILE: transport/internet/domainsocket/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 46) | func (x *Config) Reset() { method String (line 55) | func (x *Config) String() string { method ProtoMessage (line 59) | func (*Config) ProtoMessage() {} method ProtoReflect (line 61) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 74) | func (*Config) Descriptor() ([]byte, []int) { method GetPath (line 78) | func (x *Config) GetPath() string { method GetAbstract (line 85) | func (x *Config) GetAbstract() bool { method GetPadding (line 92) | func (x *Config) GetPadding() bool { method GetAcceptProxyProtocol (line 99) | func (x *Config) GetAcceptProxyProtocol() bool { function file_transport_internet_domainsocket_config_proto_rawDescGZIP (line 140) | func file_transport_internet_domainsocket_config_proto_rawDescGZIP() []b... function init (line 159) | func init() { file_transport_internet_domainsocket_config_proto_init() } function file_transport_internet_domainsocket_config_proto_init (line 160) | func file_transport_internet_domainsocket_config_proto_init() { FILE: transport/internet/domainsocket/dial.go function Dial (line 17) | func Dial(ctx context.Context, dest net.Destination, streamSettings *int... function init (line 38) | func init() { FILE: transport/internet/domainsocket/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/domainsocket/listener.go type Listener (line 25) | type Listener struct method Addr (line 88) | func (ln *Listener) Addr() net.Addr { method Close (line 92) | func (ln *Listener) Close() error { method run (line 99) | func (ln *Listener) run() { function Listen (line 35) | func Listen(ctx context.Context, address net.Address, port net.Port, str... type fileLocker (line 120) | type fileLocker struct method Acquire (line 125) | func (fl *fileLocker) Acquire() error { method Release (line 138) | func (fl *fileLocker) Release() { function init (line 150) | func init() { FILE: transport/internet/domainsocket/listener_test.go function TestListen (line 17) | func TestListen(t *testing.T) { function TestListenAbstract (line 53) | func TestListenAbstract(t *testing.T) { FILE: transport/internet/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/header.go type PacketHeader (line 10) | type PacketHeader interface function CreatePacketHeader (line 15) | func CreatePacketHeader(config interface{}) (PacketHeader, error) { type ConnectionAuthenticator (line 26) | type ConnectionAuthenticator interface function CreateConnectionAuthenticator (line 31) | func CreateConnectionAuthenticator(config interface{}) (ConnectionAuthen... FILE: transport/internet/header_test.go function TestAllHeadersLoadable (line 15) | func TestAllHeadersLoadable(t *testing.T) { FILE: transport/internet/headers/http/config.go function pickString (line 9) | func pickString(arr []string) string { method PickUri (line 21) | func (v *RequestConfig) PickUri() string { method PickHeaders (line 25) | func (v *RequestConfig) PickHeaders() []string { method GetVersionValue (line 39) | func (v *RequestConfig) GetVersionValue() string { method GetMethodValue (line 46) | func (v *RequestConfig) GetMethodValue() string { method GetFullVersion (line 53) | func (v *RequestConfig) GetFullVersion() string { method HasHeader (line 57) | func (v *ResponseConfig) HasHeader(header string) bool { method PickHeaders (line 67) | func (v *ResponseConfig) PickHeaders() []string { method GetVersionValue (line 81) | func (v *ResponseConfig) GetVersionValue() string { method GetFullVersion (line 88) | func (v *ResponseConfig) GetFullVersion() string { method GetStatusValue (line 92) | func (v *ResponseConfig) GetStatusValue() *Status { FILE: transport/internet/headers/http/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Header (line 28) | type Header struct method Reset (line 40) | func (x *Header) Reset() { method String (line 49) | func (x *Header) String() string { method ProtoMessage (line 53) | func (*Header) ProtoMessage() {} method ProtoReflect (line 55) | func (x *Header) ProtoReflect() protoreflect.Message { method Descriptor (line 68) | func (*Header) Descriptor() ([]byte, []int) { method GetName (line 72) | func (x *Header) GetName() string { method GetValue (line 79) | func (x *Header) GetValue() []string { type Version (line 87) | type Version struct method Reset (line 95) | func (x *Version) Reset() { method String (line 104) | func (x *Version) String() string { method ProtoMessage (line 108) | func (*Version) ProtoMessage() {} method ProtoReflect (line 110) | func (x *Version) ProtoReflect() protoreflect.Message { method Descriptor (line 123) | func (*Version) Descriptor() ([]byte, []int) { method GetValue (line 127) | func (x *Version) GetValue() string { type Method (line 135) | type Method struct method Reset (line 143) | func (x *Method) Reset() { method String (line 152) | func (x *Method) String() string { method ProtoMessage (line 156) | func (*Method) ProtoMessage() {} method ProtoReflect (line 158) | func (x *Method) ProtoReflect() protoreflect.Message { method Descriptor (line 171) | func (*Method) Descriptor() ([]byte, []int) { method GetValue (line 175) | func (x *Method) GetValue() string { type RequestConfig (line 182) | type RequestConfig struct method Reset (line 196) | func (x *RequestConfig) Reset() { method String (line 205) | func (x *RequestConfig) String() string { method ProtoMessage (line 209) | func (*RequestConfig) ProtoMessage() {} method ProtoReflect (line 211) | func (x *RequestConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 224) | func (*RequestConfig) Descriptor() ([]byte, []int) { method GetVersion (line 228) | func (x *RequestConfig) GetVersion() *Version { method GetMethod (line 235) | func (x *RequestConfig) GetMethod() *Method { method GetUri (line 242) | func (x *RequestConfig) GetUri() []string { method GetHeader (line 249) | func (x *RequestConfig) GetHeader() []*Header { type Status (line 256) | type Status struct method Reset (line 267) | func (x *Status) Reset() { method String (line 276) | func (x *Status) String() string { method ProtoMessage (line 280) | func (*Status) ProtoMessage() {} method ProtoReflect (line 282) | func (x *Status) ProtoReflect() protoreflect.Message { method Descriptor (line 295) | func (*Status) Descriptor() ([]byte, []int) { method GetCode (line 299) | func (x *Status) GetCode() string { method GetReason (line 306) | func (x *Status) GetReason() string { type ResponseConfig (line 313) | type ResponseConfig struct method Reset (line 323) | func (x *ResponseConfig) Reset() { method String (line 332) | func (x *ResponseConfig) String() string { method ProtoMessage (line 336) | func (*ResponseConfig) ProtoMessage() {} method ProtoReflect (line 338) | func (x *ResponseConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 351) | func (*ResponseConfig) Descriptor() ([]byte, []int) { method GetVersion (line 355) | func (x *ResponseConfig) GetVersion() *Version { method GetStatus (line 362) | func (x *ResponseConfig) GetStatus() *Status { method GetHeader (line 369) | func (x *ResponseConfig) GetHeader() []*Header { type Config (line 376) | type Config struct method Reset (line 389) | func (x *Config) Reset() { method String (line 398) | func (x *Config) String() string { method ProtoMessage (line 402) | func (*Config) ProtoMessage() {} method ProtoReflect (line 404) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 417) | func (*Config) Descriptor() ([]byte, []int) { method GetRequest (line 421) | func (x *Config) GetRequest() *RequestConfig { method GetResponse (line 428) | func (x *Config) GetResponse() *ResponseConfig { function file_transport_internet_headers_http_config_proto_rawDescGZIP (line 515) | func file_transport_internet_headers_http_config_proto_rawDescGZIP() []b... function init (line 548) | func init() { file_transport_internet_headers_http_config_proto_init() } function file_transport_internet_headers_http_config_proto_init (line 549) | func file_transport_internet_headers_http_config_proto_init() { FILE: transport/internet/headers/http/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/headers/http/http.go constant CRLF (line 21) | CRLF = "\r\n" constant ENDING (line 24) | ENDING = CRLF + CRLF constant maxHeaderLength (line 27) | maxHeaderLength = 8192 type Reader (line 36) | type Reader interface type Writer (line 40) | type Writer interface type NoOpReader (line 44) | type NoOpReader struct method Read (line 46) | func (NoOpReader) Read(io.Reader) (*buf.Buffer, error) { type NoOpWriter (line 50) | type NoOpWriter struct method Write (line 52) | func (NoOpWriter) Write(io.Writer) error { type HeaderReader (line 56) | type HeaderReader struct method ExpectThisRequest (line 61) | func (h *HeaderReader) ExpectThisRequest(expectedHeader *RequestConfig... method Read (line 66) | func (h *HeaderReader) Read(reader io.Reader) (*buf.Buffer, error) { type HeaderWriter (line 141) | type HeaderWriter struct method Write (line 151) | func (w *HeaderWriter) Write(writer io.Writer) error { function NewHeaderWriter (line 145) | func NewHeaderWriter(header *buf.Buffer) *HeaderWriter { type HttpConn (line 161) | type HttpConn struct method Read (line 185) | func (c *HttpConn) Read(b []byte) (int, error) { method Write (line 209) | func (c *HttpConn) Write(b []byte) (int, error) { method Close (line 222) | func (c *HttpConn) Close() error { function NewHttpConn (line 174) | func NewHttpConn(conn net.Conn, reader Reader, writer Writer, errorWrite... function formResponseHeader (line 241) | func formResponseHeader(config *ResponseConfig) *HeaderWriter { type HttpAuthenticator (line 262) | type HttpAuthenticator struct method GetClientWriter (line 266) | func (a HttpAuthenticator) GetClientWriter() *HeaderWriter { method GetServerWriter (line 283) | func (a HttpAuthenticator) GetServerWriter() *HeaderWriter { method Client (line 287) | func (a HttpAuthenticator) Client(conn net.Conn) net.Conn { method Server (line 303) | func (a HttpAuthenticator) Server(conn net.Conn) net.Conn { function NewHttpAuthenticator (line 313) | func NewHttpAuthenticator(ctx context.Context, config *Config) (HttpAuth... function init (line 319) | func init() { FILE: transport/internet/headers/http/http_test.go function TestReaderWriter (line 18) | func TestReaderWriter(t *testing.T) { function TestRequestHeader (line 43) | func TestRequestHeader(t *testing.T) { function TestLongRequestHeader (line 66) | func TestLongRequestHeader(t *testing.T) { function TestConnection (line 86) | func TestConnection(t *testing.T) { function TestConnectionInvPath (line 159) | func TestConnectionInvPath(t *testing.T) { function TestConnectionInvReq (line 260) | func TestConnectionInvReq(t *testing.T) { FILE: transport/internet/headers/http/linkedreadRequest.go function readRequest (line 11) | func readRequest(b *bufio.Reader, deleteHostHeader bool) (req *http.Requ... FILE: transport/internet/headers/noop/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 34) | func (x *Config) Reset() { method String (line 43) | func (x *Config) String() string { method ProtoMessage (line 47) | func (*Config) ProtoMessage() {} method ProtoReflect (line 49) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*Config) Descriptor() ([]byte, []int) { type ConnectionConfig (line 66) | type ConnectionConfig struct method Reset (line 72) | func (x *ConnectionConfig) Reset() { method String (line 81) | func (x *ConnectionConfig) String() string { method ProtoMessage (line 85) | func (*ConnectionConfig) ProtoMessage() {} method ProtoReflect (line 87) | func (x *ConnectionConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 100) | func (*ConnectionConfig) Descriptor() ([]byte, []int) { function file_transport_internet_headers_noop_config_proto_rawDescGZIP (line 132) | func file_transport_internet_headers_noop_config_proto_rawDescGZIP() []b... function init (line 152) | func init() { file_transport_internet_headers_noop_config_proto_init() } function file_transport_internet_headers_noop_config_proto_init (line 153) | func file_transport_internet_headers_noop_config_proto_init() { FILE: transport/internet/headers/noop/noop.go type NoOpHeader (line 10) | type NoOpHeader struct method Size (line 12) | func (NoOpHeader) Size() int32 { method Serialize (line 17) | func (NoOpHeader) Serialize([]byte) {} function NewNoOpHeader (line 19) | func NewNoOpHeader(context.Context, interface{}) (interface{}, error) { type NoOpConnectionHeader (line 23) | type NoOpConnectionHeader struct method Client (line 25) | func (NoOpConnectionHeader) Client(conn net.Conn) net.Conn { method Server (line 29) | func (NoOpConnectionHeader) Server(conn net.Conn) net.Conn { function NewNoOpConnectionHeader (line 33) | func NewNoOpConnectionHeader(context.Context, interface{}) (interface{},... function init (line 37) | func init() { FILE: transport/internet/headers/srtp/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 41) | func (x *Config) Reset() { method String (line 50) | func (x *Config) String() string { method ProtoMessage (line 54) | func (*Config) ProtoMessage() {} method ProtoReflect (line 56) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 69) | func (*Config) Descriptor() ([]byte, []int) { method GetVersion (line 73) | func (x *Config) GetVersion() uint32 { method GetPadding (line 80) | func (x *Config) GetPadding() bool { method GetExtension (line 87) | func (x *Config) GetExtension() bool { method GetCsrcCount (line 94) | func (x *Config) GetCsrcCount() uint32 { method GetMarker (line 101) | func (x *Config) GetMarker() bool { method GetPayloadType (line 108) | func (x *Config) GetPayloadType() uint32 { function file_transport_internet_headers_srtp_config_proto_rawDescGZIP (line 152) | func file_transport_internet_headers_srtp_config_proto_rawDescGZIP() []b... function init (line 171) | func init() { file_transport_internet_headers_srtp_config_proto_init() } function file_transport_internet_headers_srtp_config_proto_init (line 172) | func file_transport_internet_headers_srtp_config_proto_init() { FILE: transport/internet/headers/srtp/srtp.go type SRTP (line 11) | type SRTP struct method Size (line 16) | func (*SRTP) Size() int32 { method Serialize (line 21) | func (s *SRTP) Serialize(b []byte) { function New (line 28) | func New(ctx context.Context, config interface{}) (interface{}, error) { function init (line 35) | func init() { FILE: transport/internet/headers/srtp/srtp_test.go function TestSRTPWrite (line 12) | func TestSRTPWrite(t *testing.T) { FILE: transport/internet/headers/tls/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type PacketConfig (line 28) | type PacketConfig struct method Reset (line 34) | func (x *PacketConfig) Reset() { method String (line 43) | func (x *PacketConfig) String() string { method ProtoMessage (line 47) | func (*PacketConfig) ProtoMessage() {} method ProtoReflect (line 49) | func (x *PacketConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*PacketConfig) Descriptor() ([]byte, []int) { function file_transport_internet_headers_tls_config_proto_rawDescGZIP (line 92) | func file_transport_internet_headers_tls_config_proto_rawDescGZIP() []by... function init (line 111) | func init() { file_transport_internet_headers_tls_config_proto_init() } function file_transport_internet_headers_tls_config_proto_init (line 112) | func file_transport_internet_headers_tls_config_proto_init() { FILE: transport/internet/headers/tls/dtls.go type DTLS (line 11) | type DTLS struct method Size (line 18) | func (*DTLS) Size() int32 { method Serialize (line 23) | func (d *DTLS) Serialize(b []byte) { function New (line 45) | func New(ctx context.Context, config interface{}) (interface{}, error) { function init (line 53) | func init() { FILE: transport/internet/headers/tls/dtls_test.go function TestDTLSWrite (line 12) | func TestDTLSWrite(t *testing.T) { FILE: transport/internet/headers/utp/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 36) | func (x *Config) Reset() { method String (line 45) | func (x *Config) String() string { method ProtoMessage (line 49) | func (*Config) ProtoMessage() {} method ProtoReflect (line 51) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 64) | func (*Config) Descriptor() ([]byte, []int) { method GetVersion (line 68) | func (x *Config) GetVersion() uint32 { function file_transport_internet_headers_utp_config_proto_rawDescGZIP (line 103) | func file_transport_internet_headers_utp_config_proto_rawDescGZIP() []by... function init (line 122) | func init() { file_transport_internet_headers_utp_config_proto_init() } function file_transport_internet_headers_utp_config_proto_init (line 123) | func file_transport_internet_headers_utp_config_proto_init() { FILE: transport/internet/headers/utp/utp.go type UTP (line 11) | type UTP struct method Size (line 17) | func (*UTP) Size() int32 { method Serialize (line 22) | func (u *UTP) Serialize(b []byte) { function New (line 29) | func New(ctx context.Context, config interface{}) (interface{}, error) { function init (line 37) | func init() { FILE: transport/internet/headers/utp/utp_test.go function TestUTPWrite (line 12) | func TestUTPWrite(t *testing.T) { FILE: transport/internet/headers/wechat/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type VideoConfig (line 28) | type VideoConfig struct method Reset (line 34) | func (x *VideoConfig) Reset() { method String (line 43) | func (x *VideoConfig) String() string { method ProtoMessage (line 47) | func (*VideoConfig) ProtoMessage() {} method ProtoReflect (line 49) | func (x *VideoConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*VideoConfig) Descriptor() ([]byte, []int) { function file_transport_internet_headers_wechat_config_proto_rawDescGZIP (line 93) | func file_transport_internet_headers_wechat_config_proto_rawDescGZIP() [... function init (line 112) | func init() { file_transport_internet_headers_wechat_config_proto_init() } function file_transport_internet_headers_wechat_config_proto_init (line 113) | func file_transport_internet_headers_wechat_config_proto_init() { FILE: transport/internet/headers/wechat/wechat.go type VideoChat (line 11) | type VideoChat struct method Size (line 15) | func (vc *VideoChat) Size() int32 { method Serialize (line 20) | func (vc *VideoChat) Serialize(b []byte) { function NewVideoChat (line 35) | func NewVideoChat(ctx context.Context, config interface{}) (interface{},... function init (line 41) | func init() { FILE: transport/internet/headers/wechat/wechat_test.go function TestUTPWrite (line 12) | func TestUTPWrite(t *testing.T) { FILE: transport/internet/headers/wireguard/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type WireguardConfig (line 28) | type WireguardConfig struct method Reset (line 34) | func (x *WireguardConfig) Reset() { method String (line 43) | func (x *WireguardConfig) String() string { method ProtoMessage (line 47) | func (*WireguardConfig) ProtoMessage() {} method ProtoReflect (line 49) | func (x *WireguardConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*WireguardConfig) Descriptor() ([]byte, []int) { function file_transport_internet_headers_wireguard_config_proto_rawDescGZIP (line 94) | func file_transport_internet_headers_wireguard_config_proto_rawDescGZIP(... function init (line 113) | func init() { file_transport_internet_headers_wireguard_config_proto_ini... function file_transport_internet_headers_wireguard_config_proto_init (line 114) | func file_transport_internet_headers_wireguard_config_proto_init() { FILE: transport/internet/headers/wireguard/wireguard.go type Wireguard (line 9) | type Wireguard struct method Size (line 11) | func (Wireguard) Size() int32 { method Serialize (line 16) | func (Wireguard) Serialize(b []byte) { function NewWireguard (line 24) | func NewWireguard(ctx context.Context, config interface{}) (interface{},... function init (line 28) | func init() { FILE: transport/internet/http/config.go constant protocolName (line 11) | protocolName = "http" method getHosts (line 13) | func (c *Config) getHosts() []string { method isValidHost (line 20) | func (c *Config) isValidHost(host string) bool { method getRandomHost (line 30) | func (c *Config) getRandomHost() string { method getNormalizedPath (line 35) | func (c *Config) getNormalizedPath() string { function init (line 45) | func init() { FILE: transport/internet/http/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 37) | func (x *Config) Reset() { method String (line 46) | func (x *Config) String() string { method ProtoMessage (line 50) | func (*Config) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Config) Descriptor() ([]byte, []int) { method GetHost (line 69) | func (x *Config) GetHost() []string { method GetPath (line 76) | func (x *Config) GetPath() string { function file_transport_internet_http_config_proto_rawDescGZIP (line 109) | func file_transport_internet_http_config_proto_rawDescGZIP() []byte { function init (line 128) | func init() { file_transport_internet_http_config_proto_init() } function file_transport_internet_http_config_proto_init (line 129) | func file_transport_internet_http_config_proto_init() { FILE: transport/internet/http/dialer.go function getHTTPClient (line 26) | func getHTTPClient(ctx context.Context, dest net.Destination, tlsSetting... function Dial (line 88) | func Dial(ctx context.Context, dest net.Destination, streamSettings *int... function init (line 136) | func init() { FILE: transport/internet/http/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/http/http_test.go function TestHTTPConnection (line 21) | func TestHTTPConnection(t *testing.T) { FILE: transport/internet/http/hub.go type Listener (line 25) | type Listener struct method Addr (line 32) | func (l *Listener) Addr() net.Addr { method Close (line 36) | func (l *Listener) Close() error { method ServeHTTP (line 57) | func (l *Listener) ServeHTTP(writer http.ResponseWriter, request *http... type flushWriter (line 40) | type flushWriter struct method Write (line 45) | func (fw flushWriter) Write(p []byte) (n int, err error) { function Listen (line 103) | func Listen(ctx context.Context, address net.Address, port net.Port, str... function init (line 159) | func init() { FILE: transport/internet/kcp/config.go constant protocolName (line 11) | protocolName = "mkcp" method GetMTUValue (line 14) | func (c *Config) GetMTUValue() uint32 { method GetTTIValue (line 22) | func (c *Config) GetTTIValue() uint32 { method GetUplinkCapacityValue (line 30) | func (c *Config) GetUplinkCapacityValue() uint32 { method GetDownlinkCapacityValue (line 38) | func (c *Config) GetDownlinkCapacityValue() uint32 { method GetWriteBufferSize (line 46) | func (c *Config) GetWriteBufferSize() uint32 { method GetReadBufferSize (line 54) | func (c *Config) GetReadBufferSize() uint32 { method GetSecurity (line 62) | func (c *Config) GetSecurity() (cipher.AEAD, error) { method GetPackerHeader (line 69) | func (c *Config) GetPackerHeader() (internet.PacketHeader, error) { method GetSendingInFlightSize (line 81) | func (c *Config) GetSendingInFlightSize() uint32 { method GetSendingBufferSize (line 89) | func (c *Config) GetSendingBufferSize() uint32 { method GetReceivingInFlightSize (line 93) | func (c *Config) GetReceivingInFlightSize() uint32 { method GetReceivingBufferSize (line 101) | func (c *Config) GetReceivingBufferSize() uint32 { function init (line 105) | func init() { FILE: transport/internet/kcp/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type MTU (line 30) | type MTU struct method Reset (line 38) | func (x *MTU) Reset() { method String (line 47) | func (x *MTU) String() string { method ProtoMessage (line 51) | func (*MTU) ProtoMessage() {} method ProtoReflect (line 53) | func (x *MTU) ProtoReflect() protoreflect.Message { method Descriptor (line 66) | func (*MTU) Descriptor() ([]byte, []int) { method GetValue (line 70) | func (x *MTU) GetValue() uint32 { type TTI (line 78) | type TTI struct method Reset (line 86) | func (x *TTI) Reset() { method String (line 95) | func (x *TTI) String() string { method ProtoMessage (line 99) | func (*TTI) ProtoMessage() {} method ProtoReflect (line 101) | func (x *TTI) ProtoReflect() protoreflect.Message { method Descriptor (line 114) | func (*TTI) Descriptor() ([]byte, []int) { method GetValue (line 118) | func (x *TTI) GetValue() uint32 { type UplinkCapacity (line 126) | type UplinkCapacity struct method Reset (line 134) | func (x *UplinkCapacity) Reset() { method String (line 143) | func (x *UplinkCapacity) String() string { method ProtoMessage (line 147) | func (*UplinkCapacity) ProtoMessage() {} method ProtoReflect (line 149) | func (x *UplinkCapacity) ProtoReflect() protoreflect.Message { method Descriptor (line 162) | func (*UplinkCapacity) Descriptor() ([]byte, []int) { method GetValue (line 166) | func (x *UplinkCapacity) GetValue() uint32 { type DownlinkCapacity (line 174) | type DownlinkCapacity struct method Reset (line 182) | func (x *DownlinkCapacity) Reset() { method String (line 191) | func (x *DownlinkCapacity) String() string { method ProtoMessage (line 195) | func (*DownlinkCapacity) ProtoMessage() {} method ProtoReflect (line 197) | func (x *DownlinkCapacity) ProtoReflect() protoreflect.Message { method Descriptor (line 210) | func (*DownlinkCapacity) Descriptor() ([]byte, []int) { method GetValue (line 214) | func (x *DownlinkCapacity) GetValue() uint32 { type WriteBuffer (line 221) | type WriteBuffer struct method Reset (line 230) | func (x *WriteBuffer) Reset() { method String (line 239) | func (x *WriteBuffer) String() string { method ProtoMessage (line 243) | func (*WriteBuffer) ProtoMessage() {} method ProtoReflect (line 245) | func (x *WriteBuffer) ProtoReflect() protoreflect.Message { method Descriptor (line 258) | func (*WriteBuffer) Descriptor() ([]byte, []int) { method GetSize (line 262) | func (x *WriteBuffer) GetSize() uint32 { type ReadBuffer (line 269) | type ReadBuffer struct method Reset (line 278) | func (x *ReadBuffer) Reset() { method String (line 287) | func (x *ReadBuffer) String() string { method ProtoMessage (line 291) | func (*ReadBuffer) ProtoMessage() {} method ProtoReflect (line 293) | func (x *ReadBuffer) ProtoReflect() protoreflect.Message { method Descriptor (line 306) | func (*ReadBuffer) Descriptor() ([]byte, []int) { method GetSize (line 310) | func (x *ReadBuffer) GetSize() uint32 { type ConnectionReuse (line 317) | type ConnectionReuse struct method Reset (line 325) | func (x *ConnectionReuse) Reset() { method String (line 334) | func (x *ConnectionReuse) String() string { method ProtoMessage (line 338) | func (*ConnectionReuse) ProtoMessage() {} method ProtoReflect (line 340) | func (x *ConnectionReuse) ProtoReflect() protoreflect.Message { method Descriptor (line 353) | func (*ConnectionReuse) Descriptor() ([]byte, []int) { method GetEnable (line 357) | func (x *ConnectionReuse) GetEnable() bool { type EncryptionSeed (line 365) | type EncryptionSeed struct method Reset (line 373) | func (x *EncryptionSeed) Reset() { method String (line 382) | func (x *EncryptionSeed) String() string { method ProtoMessage (line 386) | func (*EncryptionSeed) ProtoMessage() {} method ProtoReflect (line 388) | func (x *EncryptionSeed) ProtoReflect() protoreflect.Message { method Descriptor (line 401) | func (*EncryptionSeed) Descriptor() ([]byte, []int) { method GetSeed (line 405) | func (x *EncryptionSeed) GetSeed() string { type Config (line 412) | type Config struct method Reset (line 428) | func (x *Config) Reset() { method String (line 437) | func (x *Config) String() string { method ProtoMessage (line 441) | func (*Config) ProtoMessage() {} method ProtoReflect (line 443) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 456) | func (*Config) Descriptor() ([]byte, []int) { method GetMtu (line 460) | func (x *Config) GetMtu() *MTU { method GetTti (line 467) | func (x *Config) GetTti() *TTI { method GetUplinkCapacity (line 474) | func (x *Config) GetUplinkCapacity() *UplinkCapacity { method GetDownlinkCapacity (line 481) | func (x *Config) GetDownlinkCapacity() *DownlinkCapacity { method GetCongestion (line 488) | func (x *Config) GetCongestion() bool { method GetWriteBuffer (line 495) | func (x *Config) GetWriteBuffer() *WriteBuffer { method GetReadBuffer (line 502) | func (x *Config) GetReadBuffer() *ReadBuffer { method GetHeaderConfig (line 509) | func (x *Config) GetHeaderConfig() *serial.TypedMessage { method GetSeed (line 516) | func (x *Config) GetSeed() *EncryptionSeed { function file_transport_internet_kcp_config_proto_rawDescGZIP (line 608) | func file_transport_internet_kcp_config_proto_rawDescGZIP() []byte { function init (line 644) | func init() { file_transport_internet_kcp_config_proto_init() } function file_transport_internet_kcp_config_proto_init (line 645) | func file_transport_internet_kcp_config_proto_init() { FILE: transport/internet/kcp/connection.go type State (line 26) | type State method Is (line 29) | func (s State) Is(states ...State) bool { constant StateActive (line 39) | StateActive State = 0 constant StateReadyToClose (line 40) | StateReadyToClose State = 1 constant StatePeerClosed (line 41) | StatePeerClosed State = 2 constant StateTerminating (line 42) | StateTerminating State = 3 constant StatePeerTerminating (line 43) | StatePeerTerminating State = 4 constant StateTerminated (line 44) | StateTerminated State = 5 function nowMillisec (line 47) | func nowMillisec() int64 { type RoundTripInfo (line 52) | type RoundTripInfo struct method UpdatePeerRTO (line 61) | func (info *RoundTripInfo) UpdatePeerRTO(rto uint32, current uint32) { method Update (line 73) | func (info *RoundTripInfo) Update(rtt uint32, current uint32) { method Timeout (line 109) | func (info *RoundTripInfo) Timeout() uint32 { method SmoothedTime (line 116) | func (info *RoundTripInfo) SmoothedTime() uint32 { type Updater (line 123) | type Updater struct method WakeUp (line 142) | func (u *Updater) WakeUp() { method run (line 150) | func (u *Updater) run() { method Interval (line 164) | func (u *Updater) Interval() time.Duration { method SetInterval (line 168) | func (u *Updater) SetInterval(d time.Duration) { function NewUpdater (line 131) | func NewUpdater(interval uint32, shouldContinue func() bool, shouldTermi... type ConnMetadata (line 172) | type ConnMetadata struct type Connection (line 179) | type Connection struct method Elapsed (line 251) | func (c *Connection) Elapsed() uint32 { method ReadMultiBuffer (line 256) | func (c *Connection) ReadMultiBuffer() (buf.MultiBuffer, error) { method waitForDataInput (line 281) | func (c *Connection) waitForDataInput() error { method Read (line 314) | func (c *Connection) Read(b []byte) (int, error) { method waitForDataOutput (line 335) | func (c *Connection) waitForDataOutput() error { method Write (line 368) | func (c *Connection) Write(b []byte) (int, error) { method WriteMultiBuffer (line 377) | func (c *Connection) WriteMultiBuffer(mb buf.MultiBuffer) error { method writeMultiBufferInternal (line 386) | func (c *Connection) writeMultiBufferInternal(reader io.Reader) error { method SetState (line 429) | func (c *Connection) SetState(state State) { method Close (line 458) | func (c *Connection) Close() error { method LocalAddr (line 483) | func (c *Connection) LocalAddr() net.Addr { method RemoteAddr (line 491) | func (c *Connection) RemoteAddr() net.Addr { method SetDeadline (line 499) | func (c *Connection) SetDeadline(t time.Time) error { method SetReadDeadline (line 507) | func (c *Connection) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 516) | func (c *Connection) SetWriteDeadline(t time.Time) error { method updateTask (line 525) | func (c *Connection) updateTask() { method Terminate (line 529) | func (c *Connection) Terminate() { method HandleOption (line 544) | func (c *Connection) HandleOption(opt SegmentOption) { method OnPeerClosed (line 550) | func (c *Connection) OnPeerClosed() { method Input (line 560) | func (c *Connection) Input(segments []Segment) { method flush (line 607) | func (c *Connection) flush() { method State (line 646) | func (c *Connection) State() State { method Ping (line 650) | func (c *Connection) Ping(current uint32, cmd Command) { function NewConnection (line 207) | func NewConnection(meta ConnMetadata, writer PacketWriter, closer io.Clo... FILE: transport/internet/kcp/connection_test.go type NoOpCloser (line 12) | type NoOpCloser method Close (line 14) | func (NoOpCloser) Close() error { function TestConnectionReadTimeout (line 18) | func TestConnectionReadTimeout(t *testing.T) { function TestConnectionInterface (line 33) | func TestConnectionInterface(t *testing.T) { FILE: transport/internet/kcp/crypt.go type SimpleAuthenticator (line 14) | type SimpleAuthenticator struct method NonceSize (line 22) | func (*SimpleAuthenticator) NonceSize() int { method Overhead (line 27) | func (*SimpleAuthenticator) Overhead() int { method Seal (line 32) | func (a *SimpleAuthenticator) Seal(dst, nonce, plain, extra []byte) []... method Open (line 54) | func (a *SimpleAuthenticator) Open(dst, nonce, cipherText, extra []byt... function NewSimpleAuthenticator (line 17) | func NewSimpleAuthenticator() cipher.AEAD { FILE: transport/internet/kcp/crypt_test.go function TestSimpleAuthenticator (line 12) | func TestSimpleAuthenticator(t *testing.T) { function TestSimpleAuthenticator2 (line 26) | func TestSimpleAuthenticator2(t *testing.T) { FILE: transport/internet/kcp/cryptreal.go function NewAEADAESGCMBasedOnSeed (line 10) | func NewAEADAESGCMBasedOnSeed(seed string) cipher.AEAD { FILE: transport/internet/kcp/dialer.go function fetchInput (line 23) | func fetchInput(ctx context.Context, input io.Reader, reader PacketReade... function DialKCP (line 51) | func DialKCP(ctx context.Context, dest net.Destination, streamSettings *... function init (line 100) | func init() { FILE: transport/internet/kcp/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/kcp/io.go type PacketReader (line 15) | type PacketReader interface type PacketWriter (line 19) | type PacketWriter interface type KCPPacketReader (line 24) | type KCPPacketReader struct method Read (line 29) | func (r *KCPPacketReader) Read(b []byte) []Segment { type KCPPacketWriter (line 60) | type KCPPacketWriter struct method Overhead (line 66) | func (w *KCPPacketWriter) Overhead() int { method Write (line 77) | func (w *KCPPacketWriter) Write(b []byte) (int, error) { FILE: transport/internet/kcp/io_test.go function TestKCPPacketReader (line 9) | func TestKCPPacketReader(t *testing.T) { FILE: transport/internet/kcp/kcp_test.go function TestDialAndListen (line 20) | func TestDialAndListen(t *testing.T) { FILE: transport/internet/kcp/listener.go type ConnectionID (line 22) | type ConnectionID struct type Listener (line 29) | type Listener struct method handlePackets (line 85) | func (l *Listener) handlePackets() { method OnReceive (line 92) | func (l *Listener) OnReceive(payload *buf.Buffer, src net.Destination) { method Remove (line 152) | func (l *Listener) Remove(id ConnectionID) { method Close (line 159) | func (l *Listener) Close() error { method ActiveConnections (line 172) | func (l *Listener) ActiveConnections() int { method Addr (line 180) | func (l *Listener) Addr() net.Addr { function NewListener (line 42) | func NewListener(ctx context.Context, address net.Address, port net.Port... type Writer (line 184) | type Writer struct method Write (line 191) | func (w *Writer) Write(payload []byte) (int, error) { method Close (line 195) | func (w *Writer) Close() error { function ListenKCP (line 200) | func ListenKCP(ctx context.Context, address net.Address, port net.Port, ... function init (line 204) | func init() { FILE: transport/internet/kcp/output.go type SegmentWriter (line 14) | type SegmentWriter interface type SimpleSegmentWriter (line 18) | type SimpleSegmentWriter struct method Write (line 31) | func (w *SimpleSegmentWriter) Write(seg Segment) error { function NewSegmentWriter (line 24) | func NewSegmentWriter(writer io.Writer) SegmentWriter { type RetryableWriter (line 42) | type RetryableWriter struct method Write (line 52) | func (w *RetryableWriter) Write(seg Segment) error { function NewRetryableWriter (line 46) | func NewRetryableWriter(writer SegmentWriter) SegmentWriter { FILE: transport/internet/kcp/receiving.go type ReceivingWindow (line 11) | type ReceivingWindow struct method Set (line 21) | func (w *ReceivingWindow) Set(id uint32, value *DataSegment) bool { method Has (line 30) | func (w *ReceivingWindow) Has(id uint32) bool { method Remove (line 35) | func (w *ReceivingWindow) Remove(id uint32) *DataSegment { function NewReceivingWindow (line 15) | func NewReceivingWindow() *ReceivingWindow { type AckList (line 44) | type AckList struct method Add (line 64) | func (l *AckList) Add(number uint32, timestamp uint32) { method Clear (line 71) | func (l *AckList) Clear(una uint32) { method Flush (line 92) | func (l *AckList) Flush(current uint32, rto uint32) { function NewAckList (line 54) | func NewAckList(writer SegmentWriter) *AckList { type ReceivingWorker (line 133) | type ReceivingWorker struct method Release (line 153) | func (w *ReceivingWorker) Release() { method ProcessSendingNext (line 160) | func (w *ReceivingWorker) ProcessSendingNext(number uint32) { method ProcessSegment (line 167) | func (w *ReceivingWorker) ProcessSegment(seg *DataSegment) { method ReadMultiBuffer (line 184) | func (w *ReceivingWorker) ReadMultiBuffer() buf.MultiBuffer { method Read (line 208) | func (w *ReceivingWorker) Read(b []byte) int { method IsDataAvailable (line 220) | func (w *ReceivingWorker) IsDataAvailable() bool { method NextNumber (line 226) | func (w *ReceivingWorker) NextNumber() uint32 { method Flush (line 233) | func (w *ReceivingWorker) Flush(current uint32) { method Write (line 240) | func (w *ReceivingWorker) Write(seg Segment) error { method CloseRead (line 252) | func (*ReceivingWorker) CloseRead() { method UpdateNecessary (line 255) | func (w *ReceivingWorker) UpdateNecessary() bool { function NewReceivingWorker (line 143) | func NewReceivingWorker(kcp *Connection) *ReceivingWorker { FILE: transport/internet/kcp/segment.go type Command (line 12) | type Command constant CommandACK (line 16) | CommandACK Command = 0 constant CommandData (line 18) | CommandData Command = 1 constant CommandTerminate (line 20) | CommandTerminate Command = 2 constant CommandPing (line 22) | CommandPing Command = 3 type SegmentOption (line 25) | type SegmentOption constant SegmentOptionClose (line 28) | SegmentOptionClose SegmentOption = 1 type Segment (line 31) | type Segment interface constant DataSegmentOverhead (line 41) | DataSegmentOverhead = 18 type DataSegment (line 44) | type DataSegment struct method parse (line 60) | func (s *DataSegment) parse(conv uint16, cmd Command, opt SegmentOptio... method Conversation (line 88) | func (s *DataSegment) Conversation() uint16 { method Command (line 92) | func (*DataSegment) Command() Command { method Detach (line 96) | func (s *DataSegment) Detach() *buf.Buffer { method Data (line 102) | func (s *DataSegment) Data() *buf.Buffer { method Serialize (line 109) | func (s *DataSegment) Serialize(b []byte) { method ByteSize (line 120) | func (s *DataSegment) ByteSize() int32 { method Release (line 124) | func (s *DataSegment) Release() { function NewDataSegment (line 56) | func NewDataSegment() *DataSegment { type AckSegment (line 129) | type AckSegment struct method parse (line 144) | func (s *AckSegment) parse(conv uint16, cmd Command, opt SegmentOption... method Conversation (line 174) | func (s *AckSegment) Conversation() uint16 { method Command (line 178) | func (*AckSegment) Command() Command { method PutTimestamp (line 182) | func (s *AckSegment) PutTimestamp(timestamp uint32) { method PutNumber (line 188) | func (s *AckSegment) PutNumber(number uint32) { method IsFull (line 192) | func (s *AckSegment) IsFull() bool { method IsEmpty (line 196) | func (s *AckSegment) IsEmpty() bool { method ByteSize (line 200) | func (s *AckSegment) ByteSize() int32 { method Serialize (line 204) | func (s *AckSegment) Serialize(b []byte) { method Release (line 219) | func (s *AckSegment) Release() {} constant ackNumberLimit (line 138) | ackNumberLimit = 128 function NewAckSegment (line 140) | func NewAckSegment() *AckSegment { type CmdOnlySegment (line 221) | type CmdOnlySegment struct method parse (line 234) | func (s *CmdOnlySegment) parse(conv uint16, cmd Command, opt SegmentOp... method Conversation (line 255) | func (s *CmdOnlySegment) Conversation() uint16 { method Command (line 259) | func (s *CmdOnlySegment) Command() Command { method ByteSize (line 263) | func (*CmdOnlySegment) ByteSize() int32 { method Serialize (line 267) | func (s *CmdOnlySegment) Serialize(b []byte) { method Release (line 276) | func (*CmdOnlySegment) Release() {} function NewCmdOnlySegment (line 230) | func NewCmdOnlySegment() *CmdOnlySegment { function ReadSegment (line 278) | func ReadSegment(buf []byte) (Segment, []byte) { FILE: transport/internet/kcp/segment_test.go function TestBadSegment (line 12) | func TestBadSegment(t *testing.T) { function TestDataSegment (line 22) | func TestDataSegment(t *testing.T) { function Test1ByteDataSegment (line 45) | func Test1ByteDataSegment(t *testing.T) { function TestACKSegment (line 68) | func TestACKSegment(t *testing.T) { function TestCmdSegment (line 88) | func TestCmdSegment(t *testing.T) { FILE: transport/internet/kcp/sending.go type SendingWindow (line 12) | type SendingWindow struct method Release (line 28) | func (sw *SendingWindow) Release() { method Len (line 39) | func (sw *SendingWindow) Len() uint32 { method IsEmpty (line 43) | func (sw *SendingWindow) IsEmpty() bool { method Push (line 47) | func (sw *SendingWindow) Push(number uint32, b *buf.Buffer) { method FirstNumber (line 55) | func (sw *SendingWindow) FirstNumber() uint32 { method Clear (line 59) | func (sw *SendingWindow) Clear(una uint32) { method HandleFastAck (line 70) | func (sw *SendingWindow) HandleFastAck(number uint32, rto uint32) { method Visit (line 87) | func (sw *SendingWindow) Visit(visitor func(seg *DataSegment) bool) { method Flush (line 100) | func (sw *SendingWindow) Flush(current uint32, rto uint32, maxInFlight... method Remove (line 133) | func (sw *SendingWindow) Remove(number uint32) bool { function NewSendingWindow (line 19) | func NewSendingWindow(writer SegmentWriter, onPacketLoss func(uint32)) *... type SendingWorker (line 155) | type SendingWorker struct method Release (line 181) | func (w *SendingWorker) Release() { method ProcessReceivingNext (line 188) | func (w *SendingWorker) ProcessReceivingNext(nextNumber uint32) { method ProcessReceivingNextWithoutLock (line 195) | func (w *SendingWorker) ProcessReceivingNextWithoutLock(nextNumber uin... method FindFirstUnacknowledged (line 200) | func (w *SendingWorker) FindFirstUnacknowledged() { method processAck (line 212) | func (w *SendingWorker) processAck(number uint32) bool { method ProcessSegment (line 225) | func (w *SendingWorker) ProcessSegment(current uint32, seg *AckSegment... method Push (line 262) | func (w *SendingWorker) Push(b *buf.Buffer) bool { method Write (line 279) | func (w *SendingWorker) Write(seg Segment) error { method OnPacketLoss (line 292) | func (w *SendingWorker) OnPacketLoss(lossRate uint32) { method Flush (line 310) | func (w *SendingWorker) Flush(current uint32) { method CloseWrite (line 341) | func (w *SendingWorker) CloseWrite() { method IsEmpty (line 348) | func (w *SendingWorker) IsEmpty() bool { method UpdateNecessary (line 355) | func (w *SendingWorker) UpdateNecessary() bool { method FirstUnacknowledged (line 359) | func (w *SendingWorker) FirstUnacknowledged() uint32 { function NewSendingWorker (line 169) | func NewSendingWorker(kcp *Connection) *SendingWorker { FILE: transport/internet/kcp/xor.go function xorfwd (line 6) | func xorfwd(x []byte) { function xorbkd (line 13) | func xorbkd(x []byte) { FILE: transport/internet/kcp/xor_amd64.go function xorfwd (line 4) | func xorfwd(x []byte) function xorbkd (line 7) | func xorbkd(x []byte) FILE: transport/internet/memory_settings.go type MemoryStreamConfig (line 4) | type MemoryStreamConfig struct function ToMemoryStreamConfig (line 13) | func ToMemoryStreamConfig(s *StreamConfig) (*MemoryStreamConfig, error) { FILE: transport/internet/quic/config.go function getAuth (line 16) | func getAuth(config *Config) (cipher.AEAD, error) { function getHeader (line 38) | func getHeader(config *Config) (internet.PacketHeader, error) { FILE: transport/internet/quic/config.pb.go constant _ (line 21) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 23) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 28) | _ = proto.ProtoPackageIsVersion4 type Config (line 30) | type Config struct method Reset (line 40) | func (x *Config) Reset() { method String (line 49) | func (x *Config) String() string { method ProtoMessage (line 53) | func (*Config) ProtoMessage() {} method ProtoReflect (line 55) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 68) | func (*Config) Descriptor() ([]byte, []int) { method GetKey (line 72) | func (x *Config) GetKey() string { method GetSecurity (line 79) | func (x *Config) GetSecurity() *protocol.SecurityConfig { method GetHeader (line 86) | func (x *Config) GetHeader() *serial.TypedMessage { function file_transport_internet_quic_config_proto_rawDescGZIP (line 131) | func file_transport_internet_quic_config_proto_rawDescGZIP() []byte { function init (line 154) | func init() { file_transport_internet_quic_config_proto_init() } function file_transport_internet_quic_config_proto_init (line 155) | func file_transport_internet_quic_config_proto_init() { FILE: transport/internet/quic/conn.go type sysConn (line 18) | type sysConn struct method readFromInternal (line 42) | func (c *sysConn) readFromInternal(p []byte) (int, net.Addr, error) { method ReadFrom (line 79) | func (c *sysConn) ReadFrom(p []byte) (int, net.Addr, error) { method WriteTo (line 95) | func (c *sysConn) WriteTo(p []byte, addr net.Addr) (int, error) { method Close (line 124) | func (c *sysConn) Close() error { method LocalAddr (line 128) | func (c *sysConn) LocalAddr() net.Addr { method SetDeadline (line 132) | func (c *sysConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 136) | func (c *sysConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 140) | func (c *sysConn) SetWriteDeadline(t time.Time) error { function wrapSysConn (line 24) | func wrapSysConn(rawConn net.PacketConn, config *Config) (*sysConn, erro... type interConn (line 144) | type interConn struct method Read (line 150) | func (c *interConn) Read(b []byte) (int, error) { method WriteMultiBuffer (line 154) | func (c *interConn) WriteMultiBuffer(mb buf.MultiBuffer) error { method Write (line 161) | func (c *interConn) Write(b []byte) (int, error) { method Close (line 165) | func (c *interConn) Close() error { method LocalAddr (line 169) | func (c *interConn) LocalAddr() net.Addr { method RemoteAddr (line 173) | func (c *interConn) RemoteAddr() net.Addr { method SetDeadline (line 177) | func (c *interConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 181) | func (c *interConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 185) | func (c *interConn) SetWriteDeadline(t time.Time) error { FILE: transport/internet/quic/dialer.go type sessionContext (line 18) | type sessionContext struct method openStream (line 25) | func (c *sessionContext) openStream(destAddr net.Addr) (*interConn, er... type clientSessions (line 44) | type clientSessions struct method cleanSessions (line 98) | func (s *clientSessions) cleanSessions() error { method openConnection (line 119) | func (s *clientSessions) openConnection(destAddr net.Addr, config *Con... function isActive (line 50) | func isActive(s quic.Session) bool { function removeInactiveSessions (line 59) | func removeInactiveSessions(sessions []*sessionContext) []*sessionContext { function openStream (line 81) | func openStream(sessions []*sessionContext, destAddr net.Addr) *interConn { function init (line 179) | func init() { function Dial (line 188) | func Dial(ctx context.Context, dest net.Destination, streamSettings *int... function init (line 216) | func init() { FILE: transport/internet/quic/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/quic/hub.go type Listener (line 19) | type Listener struct method acceptStreams (line 26) | func (l *Listener) acceptStreams(session quic.Session) { method keepAccepting (line 56) | func (l *Listener) keepAccepting() { method Addr (line 72) | func (l *Listener) Addr() net.Addr { method Close (line 77) | func (l *Listener) Close() error { function Listen (line 85) | func Listen(ctx context.Context, address net.Address, port net.Port, str... function init (line 139) | func init() { FILE: transport/internet/quic/pool.go function init (line 13) | func init() { function getBuffer (line 17) | func getBuffer() []byte { function putBuffer (line 21) | func putBuffer(p []byte) { FILE: transport/internet/quic/quic.go constant protocolName (line 18) | protocolName = "quic" constant internalDomain (line 19) | internalDomain = "quic.internal.v2ray.com" function init (line 21) | func init() { FILE: transport/internet/quic/quic_test.go function TestQuicConnection (line 24) | func TestQuicConnection(t *testing.T) { function TestQuicConnectionWithoutTLS (line 97) | func TestQuicConnectionWithoutTLS(t *testing.T) { function TestQuicConnectionAuthHeader (line 155) | func TestQuicConnectionAuthHeader(t *testing.T) { FILE: transport/internet/sockopt.go function isTCPSocket (line 3) | func isTCPSocket(network string) bool { function isUDPSocket (line 12) | func isUDPSocket(network string) bool { FILE: transport/internet/sockopt_darwin.go constant TCP_FASTOPEN (line 9) | TCP_FASTOPEN = 0x105 constant TCP_FASTOPEN_SERVER (line 11) | TCP_FASTOPEN_SERVER = 0x01 constant TCP_FASTOPEN_CLIENT (line 13) | TCP_FASTOPEN_CLIENT = 0x02 function applyOutboundSocketOptions (line 16) | func applyOutboundSocketOptions(network string, address string, fd uintp... function applyInboundSocketOptions (line 33) | func applyInboundSocketOptions(network string, fd uintptr, config *Socke... function bindAddr (line 50) | func bindAddr(fd uintptr, address []byte, port uint32) error { function setReuseAddr (line 54) | func setReuseAddr(fd uintptr) error { function setReusePort (line 58) | func setReusePort(fd uintptr) error { FILE: transport/internet/sockopt_freebsd.go constant sysPFINOUT (line 14) | sysPFINOUT = 0x0 constant sysPFIN (line 15) | sysPFIN = 0x1 constant sysPFOUT (line 16) | sysPFOUT = 0x2 constant sysPFFWD (line 17) | sysPFFWD = 0x3 constant sysDIOCNATLOOK (line 18) | sysDIOCNATLOOK = 0xc04c4417 type pfiocNatlook (line 21) | type pfiocNatlook struct method rdPort (line 48) | func (nl *pfiocNatlook) rdPort() int { method setPort (line 52) | func (nl *pfiocNatlook) setPort(remote, local int) { constant sizeofPfiocNatlook (line 37) | sizeofPfiocNatlook = 0x4c constant soReUsePort (line 38) | soReUsePort = 0x00000200 constant soReUsePortLB (line 39) | soReUsePortLB = 0x00010000 function ioctl (line 42) | func ioctl(s uintptr, ioc int, b []byte) error { function OriginalDst (line 58) | func OriginalDst(la, ra net.Addr) (net.IP, int, error) { function applyOutboundSocketOptions (line 125) | func applyOutboundSocketOptions(network string, address string, fd uintp... function applyInboundSocketOptions (line 160) | func applyInboundSocketOptions(network string, fd uintptr, config *Socke... function bindAddr (line 190) | func bindAddr(fd uintptr, ip []byte, port uint32) error { function setReuseAddr (line 216) | func setReuseAddr(fd uintptr) error { function setReusePort (line 223) | func setReusePort(fd uintptr) error { FILE: transport/internet/sockopt_linux.go constant TCP_FASTOPEN (line 12) | TCP_FASTOPEN = 23 constant TCP_FASTOPEN_CONNECT (line 14) | TCP_FASTOPEN_CONNECT = 30 function bindAddr (line 17) | func bindAddr(fd uintptr, ip []byte, port uint32) error { function applyOutboundSocketOptions (line 43) | func applyOutboundSocketOptions(network string, address string, fd uintp... function applyInboundSocketOptions (line 72) | func applyInboundSocketOptions(network string, fd uintptr, config *Socke... function setReuseAddr (line 108) | func setReuseAddr(fd uintptr) error { function setReusePort (line 115) | func setReusePort(fd uintptr) error { FILE: transport/internet/sockopt_linux_test.go function TestSockOptMark (line 14) | func TestSockOptMark(t *testing.T) { FILE: transport/internet/sockopt_other.go function applyOutboundSocketOptions (line 5) | func applyOutboundSocketOptions(network string, address string, fd uintp... function applyInboundSocketOptions (line 9) | func applyInboundSocketOptions(network string, fd uintptr, config *Socke... function bindAddr (line 13) | func bindAddr(fd uintptr, ip []byte, port uint32) error { function setReuseAddr (line 17) | func setReuseAddr(fd uintptr) error { function setReusePort (line 21) | func setReusePort(fd uintptr) error { FILE: transport/internet/sockopt_test.go function TestTCPFastOpen (line 14) | func TestTCPFastOpen(t *testing.T) { FILE: transport/internet/sockopt_windows.go constant TCP_FASTOPEN (line 8) | TCP_FASTOPEN = 15 function setTFO (line 11) | func setTFO(fd syscall.Handle, settings SocketConfig_TCPFastOpenState) e... function applyOutboundSocketOptions (line 25) | func applyOutboundSocketOptions(network string, address string, fd uintp... function applyInboundSocketOptions (line 36) | func applyInboundSocketOptions(network string, fd uintptr, config *Socke... function bindAddr (line 46) | func bindAddr(fd uintptr, ip []byte, port uint32) error { function setReuseAddr (line 50) | func setReuseAddr(fd uintptr) error { function setReusePort (line 54) | func setReusePort(fd uintptr) error { FILE: transport/internet/system_dialer.go type SystemDialer (line 16) | type SystemDialer interface type DefaultSystemDialer (line 20) | type DefaultSystemDialer struct method Dial (line 46) | func (d *DefaultSystemDialer) Dial(ctx context.Context, src net.Addres... function resolveSrcAddr (line 24) | func resolveSrcAddr(network net.Network, src net.Address) net.Addr { function hasBindAddr (line 42) | func hasBindAddr(sockopt *SocketConfig) bool { type packetConnWrapper (line 101) | type packetConnWrapper struct method Close (line 106) | func (c *packetConnWrapper) Close() error { method LocalAddr (line 110) | func (c *packetConnWrapper) LocalAddr() net.Addr { method RemoteAddr (line 114) | func (c *packetConnWrapper) RemoteAddr() net.Addr { method Write (line 118) | func (c *packetConnWrapper) Write(p []byte) (int, error) { method Read (line 122) | func (c *packetConnWrapper) Read(p []byte) (int, error) { method SetDeadline (line 127) | func (c *packetConnWrapper) SetDeadline(t time.Time) error { method SetReadDeadline (line 131) | func (c *packetConnWrapper) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 135) | func (c *packetConnWrapper) SetWriteDeadline(t time.Time) error { type SystemDialerAdapter (line 139) | type SystemDialerAdapter interface type SimpleSystemDialer (line 143) | type SimpleSystemDialer struct method Dial (line 153) | func (v *SimpleSystemDialer) Dial(ctx context.Context, src net.Address... function WithAdapter (line 147) | func WithAdapter(dialer SystemDialerAdapter) SystemDialer { function UseAlternativeSystemDialer (line 161) | func UseAlternativeSystemDialer(dialer SystemDialer) { function RegisterDialerController (line 173) | func RegisterDialerController(ctl func(network, address string, fd uintp... FILE: transport/internet/system_listener.go type controller (line 15) | type controller type DefaultListener (line 17) | type DefaultListener struct method Listen (line 41) | func (dl *DefaultListener) Listen(ctx context.Context, addr net.Addr, ... method ListenPacket (line 49) | func (dl *DefaultListener) ListenPacket(ctx context.Context, addr net.... function getControlFunc (line 21) | func getControlFunc(ctx context.Context, sockopt *SocketConfig, controll... function RegisterListenerController (line 61) | func RegisterListenerController(controller func(network, address string,... FILE: transport/internet/system_listener_test.go function TestRegisterListenerController (line 12) | func TestRegisterListenerController(t *testing.T) { FILE: transport/internet/tcp/config.go constant protocolName (line 10) | protocolName = "tcp" function init (line 12) | func init() { FILE: transport/internet/tcp/config.pb.go constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 27) | _ = proto.ProtoPackageIsVersion4 type Config (line 29) | type Config struct method Reset (line 38) | func (x *Config) Reset() { method String (line 47) | func (x *Config) String() string { method ProtoMessage (line 51) | func (*Config) ProtoMessage() {} method ProtoReflect (line 53) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 66) | func (*Config) Descriptor() ([]byte, []int) { method GetHeaderSettings (line 70) | func (x *Config) GetHeaderSettings() *serial.TypedMessage { method GetAcceptProxyProtocol (line 77) | func (x *Config) GetAcceptProxyProtocol() bool { function file_transport_internet_tcp_config_proto_rawDescGZIP (line 118) | func file_transport_internet_tcp_config_proto_rawDescGZIP() []byte { function init (line 139) | func init() { file_transport_internet_tcp_config_proto_init() } function file_transport_internet_tcp_config_proto_init (line 140) | func file_transport_internet_tcp_config_proto_init() { FILE: transport/internet/tcp/dialer.go function Dial (line 17) | func Dial(ctx context.Context, dest net.Destination, streamSettings *int... function init (line 54) | func init() { FILE: transport/internet/tcp/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/tcp/hub.go type Listener (line 23) | type Listener struct method keepAccepting (line 85) | func (v *Listener) keepAccepting() { method Addr (line 114) | func (v *Listener) Addr() net.Addr { method Close (line 119) | func (v *Listener) Close() error { function ListenTCP (line 33) | func ListenTCP(ctx context.Context, address net.Address, port net.Port, ... function init (line 123) | func init() { FILE: transport/internet/tcp/sockopt_freebsd.go function GetOriginalDestination (line 12) | func GetOriginalDestination(conn internet.Connection) (net.Destination, ... FILE: transport/internet/tcp/sockopt_linux.go constant SO_ORIGINAL_DST (line 13) | SO_ORIGINAL_DST = 80 function GetOriginalDestination (line 15) | func GetOriginalDestination(conn internet.Connection) (net.Destination, ... FILE: transport/internet/tcp/sockopt_linux_test.go function TestGetOriginalDestination (line 16) | func TestGetOriginalDestination(t *testing.T) { FILE: transport/internet/tcp/sockopt_other.go function GetOriginalDestination (line 11) | func GetOriginalDestination(conn internet.Connection) (net.Destination, ... FILE: transport/internet/tcp_hub.go function RegisterTransportListener (line 13) | func RegisterTransportListener(protocol string, listener ListenFunc) err... type ConnHandler (line 21) | type ConnHandler type ListenFunc (line 23) | type ListenFunc type Listener (line 25) | type Listener interface function ListenTCP (line 30) | func ListenTCP(ctx context.Context, address net.Address, port net.Port, ... function ListenSystem (line 62) | func ListenSystem(ctx context.Context, addr net.Addr, sockopt *SocketCon... function ListenSystemPacket (line 69) | func ListenSystemPacket(ctx context.Context, addr net.Addr, sockopt *Soc... FILE: transport/internet/tls/config.go constant exp8357 (line 21) | exp8357 = "experiment:8357" function ParseCertificate (line 24) | func ParseCertificate(c *cert.Certificate) *Certificate { method loadSelfCertPool (line 32) | func (c *Config) loadSelfCertPool() (*x509.CertPool, error) { method BuildCertificates (line 43) | func (c *Config) BuildCertificates() []tls.Certificate { function isCertificateExpired (line 59) | func isCertificateExpired(c *tls.Certificate) bool { function issueCertificate (line 70) | func issueCertificate(rawCA *Certificate, domain string) (*tls.Certifica... method getCustomCA (line 84) | func (c *Config) getCustomCA() []*Certificate { function getGetCertificateFunc (line 94) | func getGetCertificateFunc(c *tls.Config, ca []*Certificate) func(hello ... method IsExperiment8357 (line 157) | func (c *Config) IsExperiment8357() bool { method parseServerName (line 161) | func (c *Config) parseServerName() string { method GetTLSConfig (line 170) | func (c *Config) GetTLSConfig(opts ...Option) *tls.Config { type Option (line 211) | type Option function WithDestination (line 214) | func WithDestination(dest net.Destination) Option { function WithNextProto (line 223) | func WithNextProto(protocol ...string) Option { function ConfigFromStreamSettings (line 232) | func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Co... FILE: transport/internet/tls/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Certificate_Usage (line 28) | type Certificate_Usage method Enum (line 50) | func (x Certificate_Usage) Enum() *Certificate_Usage { method String (line 56) | func (x Certificate_Usage) String() string { method Descriptor (line 60) | func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor { method Type (line 64) | func (Certificate_Usage) Type() protoreflect.EnumType { method Number (line 68) | func (x Certificate_Usage) Number() protoreflect.EnumNumber { method EnumDescriptor (line 73) | func (Certificate_Usage) EnumDescriptor() ([]byte, []int) { constant Certificate_ENCIPHERMENT (line 31) | Certificate_ENCIPHERMENT Certificate_Usage = 0 constant Certificate_AUTHORITY_VERIFY (line 32) | Certificate_AUTHORITY_VERIFY Certificate_Usage = 1 constant Certificate_AUTHORITY_ISSUE (line 33) | Certificate_AUTHORITY_ISSUE Certificate_Usage = 2 type Certificate (line 77) | type Certificate struct method Reset (line 89) | func (x *Certificate) Reset() { method String (line 98) | func (x *Certificate) String() string { method ProtoMessage (line 102) | func (*Certificate) ProtoMessage() {} method ProtoReflect (line 104) | func (x *Certificate) ProtoReflect() protoreflect.Message { method Descriptor (line 117) | func (*Certificate) Descriptor() ([]byte, []int) { method GetCertificate (line 121) | func (x *Certificate) GetCertificate() []byte { method GetKey (line 128) | func (x *Certificate) GetKey() []byte { method GetUsage (line 135) | func (x *Certificate) GetUsage() Certificate_Usage { type Config (line 142) | type Config struct method Reset (line 164) | func (x *Config) Reset() { method String (line 173) | func (x *Config) String() string { method ProtoMessage (line 177) | func (*Config) ProtoMessage() {} method ProtoReflect (line 179) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 192) | func (*Config) Descriptor() ([]byte, []int) { method GetAllowInsecure (line 196) | func (x *Config) GetAllowInsecure() bool { method GetAllowInsecureCiphers (line 203) | func (x *Config) GetAllowInsecureCiphers() bool { method GetCertificate (line 210) | func (x *Config) GetCertificate() []*Certificate { method GetServerName (line 217) | func (x *Config) GetServerName() string { method GetNextProtocol (line 224) | func (x *Config) GetNextProtocol() []string { method GetDisableSessionResumption (line 231) | func (x *Config) GetDisableSessionResumption() bool { method GetDisableSystemRoot (line 238) | func (x *Config) GetDisableSystemRoot() bool { function file_transport_internet_tls_config_proto_rawDescGZIP (line 304) | func file_transport_internet_tls_config_proto_rawDescGZIP() []byte { function init (line 328) | func init() { file_transport_internet_tls_config_proto_init() } function file_transport_internet_tls_config_proto_init (line 329) | func file_transport_internet_tls_config_proto_init() { FILE: transport/internet/tls/config_other.go type rootCertsCache (line 11) | type rootCertsCache struct method load (line 16) | func (c *rootCertsCache) load() (*x509.CertPool, error) { method getCertPool (line 34) | func (c *Config) getCertPool() (*x509.CertPool, error) { FILE: transport/internet/tls/config_test.go function TestCertificateIssuing (line 14) | func TestCertificateIssuing(t *testing.T) { function TestExpiredCertificate (line 37) | func TestExpiredCertificate(t *testing.T) { function TestInsecureCertificates (line 66) | func TestInsecureCertificates(t *testing.T) { function BenchmarkCertificateIssuing (line 77) | func BenchmarkCertificateIssuing(b *testing.B) { FILE: transport/internet/tls/config_windows.go method getCertPool (line 8) | func (c *Config) getCertPool() (*x509.CertPool, error) { FILE: transport/internet/tls/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/tls/tls.go type Conn (line 18) | type Conn struct method WriteMultiBuffer (line 22) | func (c *Conn) WriteMultiBuffer(mb buf.MultiBuffer) error { method HandshakeAddress (line 29) | func (c *Conn) HandshakeAddress() net.Address { function Client (line 41) | func Client(c net.Conn, config *tls.Config) net.Conn { function Server (line 64) | func Server(c net.Conn, config *tls.Config) net.Conn { FILE: transport/internet/udp/config.go function init (line 8) | func init() { FILE: transport/internet/udp/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Config (line 28) | type Config struct method Reset (line 34) | func (x *Config) Reset() { method String (line 43) | func (x *Config) String() string { method ProtoMessage (line 47) | func (*Config) ProtoMessage() {} method ProtoReflect (line 49) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 62) | func (*Config) Descriptor() ([]byte, []int) { function file_transport_internet_udp_config_proto_rawDescGZIP (line 89) | func file_transport_internet_udp_config_proto_rawDescGZIP() []byte { function init (line 108) | func init() { file_transport_internet_udp_config_proto_init() } function file_transport_internet_udp_config_proto_init (line 109) | func file_transport_internet_udp_config_proto_init() { FILE: transport/internet/udp/dialer.go function init (line 11) | func init() { FILE: transport/internet/udp/dispatcher.go type ResponseCallback (line 21) | type ResponseCallback type connEntry (line 23) | type connEntry struct type Dispatcher (line 29) | type Dispatcher struct method RemoveRay (line 44) | func (v *Dispatcher) RemoveRay(dest net.Destination) { method getInboundRay (line 54) | func (v *Dispatcher) getInboundRay(ctx context.Context, dest net.Desti... method Dispatch (line 81) | func (v *Dispatcher) Dispatch(ctx context.Context, destination net.Des... function NewDispatcher (line 36) | func NewDispatcher(dispatcher routing.Dispatcher, callback ResponseCallb... function handleInput (line 96) | func handleInput(ctx context.Context, conn *connEntry, dest net.Destinat... type dispatcherConn (line 124) | type dispatcherConn struct method callback (line 141) | func (c *dispatcherConn) callback(ctx context.Context, packet *udp.Pac... method ReadFrom (line 153) | func (c *dispatcherConn) ReadFrom(p []byte) (int, net.Addr, error) { method WriteTo (line 166) | func (c *dispatcherConn) WriteTo(p []byte, addr net.Addr) (int, error) { method Close (line 177) | func (c *dispatcherConn) Close() error { method LocalAddr (line 181) | func (c *dispatcherConn) LocalAddr() net.Addr { method SetDeadline (line 188) | func (c *dispatcherConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 192) | func (c *dispatcherConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 196) | func (c *dispatcherConn) SetWriteDeadline(t time.Time) error { function DialDispatcher (line 130) | func DialDispatcher(ctx context.Context, dispatcher routing.Dispatcher) ... FILE: transport/internet/udp/dispatcher_test.go type TestDispatcher (line 19) | type TestDispatcher struct method Dispatch (line 23) | func (d *TestDispatcher) Dispatch(ctx context.Context, dest net.Destin... method Start (line 27) | func (d *TestDispatcher) Start() error { method Close (line 31) | func (d *TestDispatcher) Close() error { method Type (line 35) | func (*TestDispatcher) Type() interface{} { function TestSameDestinationDispatching (line 39) | func TestSameDestinationDispatching(t *testing.T) { FILE: transport/internet/udp/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/udp/hub.go type HubOption (line 12) | type HubOption function HubCapacity (line 14) | func HubCapacity(capacity int) HubOption { function HubReceiveOriginalDestination (line 20) | func HubReceiveOriginalDestination(r bool) HubOption { type Hub (line 26) | type Hub struct method Close (line 66) | func (h *Hub) Close() error { method WriteTo (line 71) | func (h *Hub) WriteTo(payload []byte, dest net.Destination) (int, erro... method start (line 78) | func (h *Hub) start() { method Addr (line 127) | func (h *Hub) Addr() net.Addr { method Receive (line 131) | func (h *Hub) Receive() <-chan *udp.Packet { function ListenUDP (line 33) | func ListenUDP(ctx context.Context, address net.Address, port net.Port, ... FILE: transport/internet/udp/hub_freebsd.go function RetrieveOriginalDest (line 15) | func RetrieveOriginalDest(oob []byte) net.Destination { function ReadUDPMsg (line 28) | func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int... FILE: transport/internet/udp/hub_linux.go function RetrieveOriginalDest (line 12) | func RetrieveOriginalDest(oob []byte) net.Destination { function ReadUDPMsg (line 31) | func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int... FILE: transport/internet/udp/hub_other.go function RetrieveOriginalDest (line 9) | func RetrieveOriginalDest(oob []byte) net.Destination { function ReadUDPMsg (line 13) | func ReadUDPMsg(conn *net.UDPConn, payload []byte, oob []byte) (int, int... FILE: transport/internet/udp/udp.go constant protocolName (line 5) | protocolName = "udp" FILE: transport/internet/websocket/config.go constant protocolName (line 12) | protocolName = "websocket" method GetNormalizedPath (line 14) | func (c *Config) GetNormalizedPath() string { method GetRequestHeader (line 25) | func (c *Config) GetRequestHeader() http.Header { function init (line 33) | func init() { FILE: transport/internet/websocket/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Header (line 28) | type Header struct method Reset (line 37) | func (x *Header) Reset() { method String (line 46) | func (x *Header) String() string { method ProtoMessage (line 50) | func (*Header) ProtoMessage() {} method ProtoReflect (line 52) | func (x *Header) ProtoReflect() protoreflect.Message { method Descriptor (line 65) | func (*Header) Descriptor() ([]byte, []int) { method GetKey (line 69) | func (x *Header) GetKey() string { method GetValue (line 76) | func (x *Header) GetValue() string { type Config (line 83) | type Config struct method Reset (line 94) | func (x *Config) Reset() { method String (line 103) | func (x *Config) String() string { method ProtoMessage (line 107) | func (*Config) ProtoMessage() {} method ProtoReflect (line 109) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 122) | func (*Config) Descriptor() ([]byte, []int) { method GetPath (line 126) | func (x *Config) GetPath() string { method GetHeader (line 133) | func (x *Config) GetHeader() []*Header { method GetAcceptProxyProtocol (line 140) | func (x *Config) GetAcceptProxyProtocol() bool { function file_transport_internet_websocket_config_proto_rawDescGZIP (line 185) | func file_transport_internet_websocket_config_proto_rawDescGZIP() []byte { function init (line 206) | func init() { file_transport_internet_websocket_config_proto_init() } function file_transport_internet_websocket_config_proto_init (line 207) | func file_transport_internet_websocket_config_proto_init() { FILE: transport/internet/websocket/connection.go type connection (line 21) | type connection struct method Read (line 35) | func (c *connection) Read(b []byte) (int, error) { method getReader (line 51) | func (c *connection) getReader() (io.Reader, error) { method Write (line 65) | func (c *connection) Write(b []byte) (int, error) { method WriteMultiBuffer (line 72) | func (c *connection) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 79) | func (c *connection) Close() error { method LocalAddr (line 93) | func (c *connection) LocalAddr() net.Addr { method RemoteAddr (line 97) | func (c *connection) RemoteAddr() net.Addr { method SetDeadline (line 101) | func (c *connection) SetDeadline(t time.Time) error { method SetReadDeadline (line 108) | func (c *connection) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 112) | func (c *connection) SetWriteDeadline(t time.Time) error { function newConnection (line 27) | func newConnection(conn *websocket.Conn, remoteAddr net.Addr) *connection { FILE: transport/internet/websocket/dialer.go function Dial (line 18) | func Dial(ctx context.Context, dest net.Destination, streamSettings *int... function init (line 28) | func init() { function dialWebsocket (line 32) | func dialWebsocket(ctx context.Context, dest net.Destination, streamSett... FILE: transport/internet/websocket/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/websocket/hub.go type requestHandler (line 23) | type requestHandler struct method ServeHTTP (line 37) | func (h *requestHandler) ServeHTTP(writer http.ResponseWriter, request... type Listener (line 57) | type Listener struct method Addr (line 114) | func (ln *Listener) Addr() net.Addr { method Close (line 119) | func (ln *Listener) Close() error { function ListenWS (line 65) | func ListenWS(ctx context.Context, address net.Address, port net.Port, s... function init (line 123) | func init() { FILE: transport/internet/websocket/ws_test.go function Test_listenWSAndDial (line 17) | func Test_listenWSAndDial(t *testing.T) { function TestDialWithRemoteAddr (line 72) | func TestDialWithRemoteAddr(t *testing.T) { function Test_listenWSAndDial_TLS (line 114) | func Test_listenWSAndDial_TLS(t *testing.T) { FILE: transport/internet/xtls/config.go function ParseCertificate (line 22) | func ParseCertificate(c *cert.Certificate) *Certificate { method loadSelfCertPool (line 30) | func (c *Config) loadSelfCertPool() (*x509.CertPool, error) { method BuildCertificates (line 41) | func (c *Config) BuildCertificates() []xtls.Certificate { function isCertificateExpired (line 57) | func isCertificateExpired(c *xtls.Certificate) bool { function issueCertificate (line 68) | func issueCertificate(rawCA *Certificate, domain string) (*xtls.Certific... method getCustomCA (line 82) | func (c *Config) getCustomCA() []*Certificate { function getGetCertificateFunc (line 92) | func getGetCertificateFunc(c *xtls.Config, ca []*Certificate) func(hello... method parseServerName (line 155) | func (c *Config) parseServerName() string { method GetXTLSConfig (line 160) | func (c *Config) GetXTLSConfig(opts ...Option) *xtls.Config { type Option (line 201) | type Option function WithDestination (line 204) | func WithDestination(dest net.Destination) Option { function WithNextProto (line 213) | func WithNextProto(protocol ...string) Option { function ConfigFromStreamSettings (line 222) | func ConfigFromStreamSettings(settings *internet.MemoryStreamConfig) *Co... FILE: transport/internet/xtls/config.pb.go constant _ (line 19) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 21) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) constant _ (line 26) | _ = proto.ProtoPackageIsVersion4 type Certificate_Usage (line 28) | type Certificate_Usage method Enum (line 50) | func (x Certificate_Usage) Enum() *Certificate_Usage { method String (line 56) | func (x Certificate_Usage) String() string { method Descriptor (line 60) | func (Certificate_Usage) Descriptor() protoreflect.EnumDescriptor { method Type (line 64) | func (Certificate_Usage) Type() protoreflect.EnumType { method Number (line 68) | func (x Certificate_Usage) Number() protoreflect.EnumNumber { method EnumDescriptor (line 73) | func (Certificate_Usage) EnumDescriptor() ([]byte, []int) { constant Certificate_ENCIPHERMENT (line 31) | Certificate_ENCIPHERMENT Certificate_Usage = 0 constant Certificate_AUTHORITY_VERIFY (line 32) | Certificate_AUTHORITY_VERIFY Certificate_Usage = 1 constant Certificate_AUTHORITY_ISSUE (line 33) | Certificate_AUTHORITY_ISSUE Certificate_Usage = 2 type Certificate (line 77) | type Certificate struct method Reset (line 89) | func (x *Certificate) Reset() { method String (line 98) | func (x *Certificate) String() string { method ProtoMessage (line 102) | func (*Certificate) ProtoMessage() {} method ProtoReflect (line 104) | func (x *Certificate) ProtoReflect() protoreflect.Message { method Descriptor (line 117) | func (*Certificate) Descriptor() ([]byte, []int) { method GetCertificate (line 121) | func (x *Certificate) GetCertificate() []byte { method GetKey (line 128) | func (x *Certificate) GetKey() []byte { method GetUsage (line 135) | func (x *Certificate) GetUsage() Certificate_Usage { type Config (line 142) | type Config struct method Reset (line 164) | func (x *Config) Reset() { method String (line 173) | func (x *Config) String() string { method ProtoMessage (line 177) | func (*Config) ProtoMessage() {} method ProtoReflect (line 179) | func (x *Config) ProtoReflect() protoreflect.Message { method Descriptor (line 192) | func (*Config) Descriptor() ([]byte, []int) { method GetAllowInsecure (line 196) | func (x *Config) GetAllowInsecure() bool { method GetAllowInsecureCiphers (line 203) | func (x *Config) GetAllowInsecureCiphers() bool { method GetCertificate (line 210) | func (x *Config) GetCertificate() []*Certificate { method GetServerName (line 217) | func (x *Config) GetServerName() string { method GetNextProtocol (line 224) | func (x *Config) GetNextProtocol() []string { method GetDisableSessionResumption (line 231) | func (x *Config) GetDisableSessionResumption() bool { method GetDisableSystemRoot (line 238) | func (x *Config) GetDisableSystemRoot() bool { function file_transport_internet_xtls_config_proto_rawDescGZIP (line 305) | func file_transport_internet_xtls_config_proto_rawDescGZIP() []byte { function init (line 329) | func init() { file_transport_internet_xtls_config_proto_init() } function file_transport_internet_xtls_config_proto_init (line 330) | func file_transport_internet_xtls_config_proto_init() { FILE: transport/internet/xtls/config_other.go type rootCertsCache (line 11) | type rootCertsCache struct method load (line 16) | func (c *rootCertsCache) load() (*x509.CertPool, error) { method getCertPool (line 34) | func (c *Config) getCertPool() (*x509.CertPool, error) { FILE: transport/internet/xtls/config_test.go function TestCertificateIssuing (line 15) | func TestCertificateIssuing(t *testing.T) { function TestExpiredCertificate (line 38) | func TestExpiredCertificate(t *testing.T) { function TestInsecureCertificates (line 67) | func TestInsecureCertificates(t *testing.T) { function BenchmarkCertificateIssuing (line 78) | func BenchmarkCertificateIssuing(b *testing.B) { FILE: transport/internet/xtls/config_windows.go method getCertPool (line 8) | func (c *Config) getCertPool() (*x509.CertPool, error) { FILE: transport/internet/xtls/errors.generated.go type errPathObjHolder (line 5) | type errPathObjHolder struct function newError (line 7) | func newError(values ...interface{}) *errors.Error { FILE: transport/internet/xtls/xtls.go type Conn (line 18) | type Conn struct method WriteMultiBuffer (line 22) | func (c *Conn) WriteMultiBuffer(mb buf.MultiBuffer) error { method HandshakeAddress (line 29) | func (c *Conn) HandshakeAddress() net.Address { function Client (line 41) | func Client(c net.Conn, config *xtls.Config) net.Conn { function Server (line 47) | func Server(c net.Conn, config *xtls.Config) net.Conn { FILE: transport/link.go type Link (line 6) | type Link struct FILE: transport/pipe/impl.go type state (line 16) | type state constant open (line 19) | open state = iota constant closed (line 20) | closed constant errord (line 21) | errord type pipeOption (line 24) | type pipeOption struct method isFull (line 29) | func (o *pipeOption) isFull(curSize int32) bool { type pipe (line 33) | type pipe struct method getState (line 46) | func (p *pipe) getState(forRead bool) error { method readMultiBufferInternal (line 68) | func (p *pipe) readMultiBufferInternal() (buf.MultiBuffer, error) { method ReadMultiBuffer (line 81) | func (p *pipe) ReadMultiBuffer() (buf.MultiBuffer, error) { method ReadMultiBufferTimeout (line 96) | func (p *pipe) ReadMultiBufferTimeout(d time.Duration) (buf.MultiBuffe... method writeMultiBufferInternal (line 116) | func (p *pipe) writeMultiBufferInternal(mb buf.MultiBuffer) error { method WriteMultiBuffer (line 133) | func (p *pipe) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 172) | func (p *pipe) Close() error { method Interrupt (line 186) | func (p *pipe) Interrupt() { FILE: transport/pipe/pipe.go type Option (line 12) | type Option function WithoutSizeLimit (line 15) | func WithoutSizeLimit() Option { function WithSizeLimit (line 22) | func WithSizeLimit(limit int32) Option { function DiscardOverflow (line 29) | func DiscardOverflow() Option { function OptionsFromContext (line 36) | func OptionsFromContext(ctx context.Context) []Option { function New (line 50) | func New(opts ...Option) (*Reader, *Writer) { FILE: transport/pipe/pipe_test.go function TestPipeReadWrite (line 17) | func TestPipeReadWrite(t *testing.T) { function TestPipeInterrupt (line 35) | func TestPipeInterrupt(t *testing.T) { function TestPipeClose (line 52) | func TestPipeClose(t *testing.T) { function TestPipeLimitZero (line 75) | func TestPipeLimitZero(t *testing.T) { function TestPipeWriteMultiThread (line 109) | func TestPipeWriteMultiThread(t *testing.T) { function TestInterfaces (line 131) | func TestInterfaces(t *testing.T) { function BenchmarkPipeReadWrite (line 140) | func BenchmarkPipeReadWrite(b *testing.B) { FILE: transport/pipe/reader.go type Reader (line 10) | type Reader struct method ReadMultiBuffer (line 15) | func (r *Reader) ReadMultiBuffer() (buf.MultiBuffer, error) { method ReadMultiBufferTimeout (line 20) | func (r *Reader) ReadMultiBufferTimeout(d time.Duration) (buf.MultiBuf... method Interrupt (line 25) | func (r *Reader) Interrupt() { FILE: transport/pipe/writer.go type Writer (line 8) | type Writer struct method WriteMultiBuffer (line 13) | func (w *Writer) WriteMultiBuffer(mb buf.MultiBuffer) error { method Close (line 18) | func (w *Writer) Close() error { method Interrupt (line 23) | func (w *Writer) Interrupt() { FILE: v2ray.go type Server (line 23) | type Server interface function ServerType (line 28) | func ServerType() interface{} { type resolution (line 32) | type resolution struct method resolve (line 46) | func (r *resolution) resolve(allFeatures []features.Feature) (bool, er... function getFeature (line 37) | func getFeature(allFeatures []features.Feature, t reflect.Type) features... type Instance (line 90) | type Instance struct method Type (line 240) | func (s *Instance) Type() interface{} { method Close (line 245) | func (s *Instance) Close() error { method RequireFeatures (line 266) | func (s *Instance) RequireFeatures(callback interface{}) error { method AddFeature (line 289) | func (s *Instance) AddFeature(feature features.Feature) error { method GetFeature (line 323) | func (s *Instance) GetFeature(featureType interface{}) features.Feature { method Start (line 331) | func (s *Instance) Start() error { function AddInboundHandler (line 99) | func AddInboundHandler(server *Instance, config *InboundHandlerConfig) e... function addInboundHandlers (line 115) | func addInboundHandlers(server *Instance, configs []*InboundHandlerConfi... function AddOutboundHandler (line 125) | func AddOutboundHandler(server *Instance, config *OutboundHandlerConfig)... function addOutboundHandlers (line 141) | func addOutboundHandlers(server *Instance, configs []*OutboundHandlerCon... function RequireFeatures (line 153) | func RequireFeatures(ctx context.Context, callback interface{}) error { function New (line 161) | func New(config *Config) (*Instance, error) { function NewWithContext (line 172) | func NewWithContext(config *Config, ctx context.Context) (*Instance, err... function initInstanceWithConfig (line 183) | func initInstanceWithConfig(config *Config, server *Instance) (error, bo... FILE: v2ray_test.go function TestV2RayDependency (line 24) | func TestV2RayDependency(t *testing.T) { function TestV2RayClose (line 38) | func TestV2RayClose(t *testing.T) {