Documentation
¶
Index ¶
- Variables
- type AppId
- type AppId_Type
- type AppSetConfig
- func (*AppSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AppSetConfig) GetAppIds() []*AppId
- func (x *AppSetConfig) GetClashFiles() []string
- func (x *AppSetConfig) GetName() string
- func (*AppSetConfig) ProtoMessage()
- func (x *AppSetConfig) ProtoReflect() protoreflect.Message
- func (x *AppSetConfig) Reset()
- func (x *AppSetConfig) String() string
- type AtomicDomainSetConfig
- func (*AtomicDomainSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AtomicDomainSetConfig) GetClashFiles() []string
- func (x *AtomicDomainSetConfig) GetDomains() []*geo.Domain
- func (x *AtomicDomainSetConfig) GetGeosite() *GeositeConfig
- func (x *AtomicDomainSetConfig) GetName() string
- func (x *AtomicDomainSetConfig) GetUseBloomFilter() bool
- func (*AtomicDomainSetConfig) ProtoMessage()
- func (x *AtomicDomainSetConfig) ProtoReflect() protoreflect.Message
- func (x *AtomicDomainSetConfig) Reset()
- func (x *AtomicDomainSetConfig) String() string
- type AtomicIPSetConfig
- func (*AtomicIPSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AtomicIPSetConfig) GetCidrs() []*geo.CIDR
- func (x *AtomicIPSetConfig) GetClashFiles() []string
- func (x *AtomicIPSetConfig) GetGeoip() *GeoIPConfig
- func (x *AtomicIPSetConfig) GetInverse() bool
- func (x *AtomicIPSetConfig) GetName() string
- func (*AtomicIPSetConfig) ProtoMessage()
- func (x *AtomicIPSetConfig) ProtoReflect() protoreflect.Message
- func (x *AtomicIPSetConfig) Reset()
- func (x *AtomicIPSetConfig) String() string
- type ChainHandlerConfig
- func (*ChainHandlerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ChainHandlerConfig) GetHandlers() []*OutboundHandlerConfig
- func (x *ChainHandlerConfig) GetTag() string
- func (*ChainHandlerConfig) ProtoMessage()
- func (x *ChainHandlerConfig) ProtoReflect() protoreflect.Message
- func (x *ChainHandlerConfig) Reset()
- func (x *ChainHandlerConfig) String() string
- type DispatcherConfig
- func (*DispatcherConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DispatcherConfig) GetDestinationOverride() []string
- func (x *DispatcherConfig) GetFallbackToDomain() bool
- func (x *DispatcherConfig) GetFallbackToProxy() bool
- func (x *DispatcherConfig) GetIpv6FallbackToDomain() bool
- func (x *DispatcherConfig) GetSniff() bool
- func (*DispatcherConfig) ProtoMessage()
- func (x *DispatcherConfig) ProtoReflect() protoreflect.Message
- func (x *DispatcherConfig) Reset()
- func (x *DispatcherConfig) String() string
- type DnsConfig
- func (*DnsConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DnsConfig) GetCacheDuration() uint32
- func (x *DnsConfig) GetDnsRules() []*DnsRuleConfig
- func (x *DnsConfig) GetDnsServers() []*DnsServerConfig
- func (x *DnsConfig) GetEnableFakeDns() bool
- func (x *DnsConfig) GetRecords() []*Record
- func (*DnsConfig) ProtoMessage()
- func (x *DnsConfig) ProtoReflect() protoreflect.Message
- func (x *DnsConfig) Reset()
- func (x *DnsConfig) String() string
- type DnsHijackConfig
- func (*DnsHijackConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DnsHijackConfig) GetDirectAddresses() []string
- func (x *DnsHijackConfig) GetDirectReturnNilAaaaIfNotSupport() bool
- func (x *DnsHijackConfig) GetDnsConnDirect() string
- func (x *DnsHijackConfig) GetDnsConnProxy() string
- func (x *DnsHijackConfig) GetDnsServerProxy() string
- func (x *DnsHijackConfig) GetName() string
- func (x *DnsHijackConfig) GetProxyAddresses() []string
- func (x *DnsHijackConfig) GetProxyReturnNilAaaaIfNotSupport() bool
- func (x *DnsHijackConfig) GetProxyTags() []string
- func (x *DnsHijackConfig) GetUseDefaultDns() bool
- func (*DnsHijackConfig) ProtoMessage()
- func (x *DnsHijackConfig) ProtoReflect() protoreflect.Message
- func (x *DnsHijackConfig) Reset()
- func (x *DnsHijackConfig) String() string
- type DnsRuleConfig
- func (*DnsRuleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DnsRuleConfig) GetDnsServerName() string
- func (x *DnsRuleConfig) GetDomainTags() []string
- func (x *DnsRuleConfig) GetDomains() []*geo.Domain
- func (x *DnsRuleConfig) GetIncludedTypes() []DnsType
- func (x *DnsRuleConfig) GetRuleName() string
- func (*DnsRuleConfig) ProtoMessage()
- func (x *DnsRuleConfig) ProtoReflect() protoreflect.Message
- func (x *DnsRuleConfig) Reset()
- func (x *DnsRuleConfig) String() string
- type DnsRules
- type DnsServerConfig
- func (*DnsServerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DnsServerConfig) GetCacheDuration() uint32
- func (x *DnsServerConfig) GetClientIp() string
- func (x *DnsServerConfig) GetDohDnsServer() *DohDnsServer
- func (x *DnsServerConfig) GetFakeDnsServer() *FakeDnsServer
- func (x *DnsServerConfig) GetName() string
- func (x *DnsServerConfig) GetPlainDnsServer() *PlainDnsServer
- func (x *DnsServerConfig) GetQuicDnsServer() *QuicDnsServer
- func (x *DnsServerConfig) GetTlsDnsServer() *TlsDnsServer
- func (x *DnsServerConfig) GetType() isDnsServerConfig_Type
- func (*DnsServerConfig) ProtoMessage()
- func (x *DnsServerConfig) ProtoReflect() protoreflect.Message
- func (x *DnsServerConfig) Reset()
- func (x *DnsServerConfig) String() string
- type DnsServerConfig_DohDnsServer
- type DnsServerConfig_FakeDnsServer
- type DnsServerConfig_PlainDnsServer
- type DnsServerConfig_QuicDnsServer
- type DnsServerConfig_TlsDnsServer
- type DnsType
- type DohDnsServer
- type DomainSetConfig
- func (*DomainSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DomainSetConfig) GetName() string
- func (x *DomainSetConfig) GetTags() []string
- func (*DomainSetConfig) ProtoMessage()
- func (x *DomainSetConfig) ProtoReflect() protoreflect.Message
- func (x *DomainSetConfig) Reset()
- func (x *DomainSetConfig) String() string
- type DomainStrategy
- func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x DomainStrategy) Enum() *DomainStrategy
- func (DomainStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x DomainStrategy) Number() protoreflect.EnumNumber
- func (x DomainStrategy) String() string
- func (DomainStrategy) Type() protoreflect.EnumType
- type FakeDnsServer
- type FakeDnsServer_PoolConfig
- func (*FakeDnsServer_PoolConfig) Descriptor() ([]byte, []int)deprecated
- func (x *FakeDnsServer_PoolConfig) GetCidr() string
- func (x *FakeDnsServer_PoolConfig) GetLruSize() uint32
- func (*FakeDnsServer_PoolConfig) ProtoMessage()
- func (x *FakeDnsServer_PoolConfig) ProtoReflect() protoreflect.Message
- func (x *FakeDnsServer_PoolConfig) Reset()
- func (x *FakeDnsServer_PoolConfig) String() string
- type GeoConfig
- func (*GeoConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GeoConfig) GetAppSets() []*AppSetConfig
- func (x *GeoConfig) GetAtomicDomainSets() []*AtomicDomainSetConfig
- func (x *GeoConfig) GetAtomicIpSets() []*AtomicIPSetConfig
- func (x *GeoConfig) GetDomainSets() []*DomainSetConfig
- func (x *GeoConfig) GetGreatDomainSets() []*GreatDomainSetConfig
- func (x *GeoConfig) GetGreatIpSets() []*GreatIPSetConfig
- func (*GeoConfig) ProtoMessage()
- func (x *GeoConfig) ProtoReflect() protoreflect.Message
- func (x *GeoConfig) Reset()
- func (x *GeoConfig) String() string
- type GeoIPConfig
- func (*GeoIPConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GeoIPConfig) GetCodes() []string
- func (x *GeoIPConfig) GetFilepath() string
- func (*GeoIPConfig) ProtoMessage()
- func (x *GeoIPConfig) ProtoReflect() protoreflect.Message
- func (x *GeoIPConfig) Reset()
- func (x *GeoIPConfig) String() string
- type GeositeConfig
- func (*GeositeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GeositeConfig) GetAttributes() []string
- func (x *GeositeConfig) GetCodes() []string
- func (x *GeositeConfig) GetFilepath() string
- func (*GeositeConfig) ProtoMessage()
- func (x *GeositeConfig) ProtoReflect() protoreflect.Message
- func (x *GeositeConfig) Reset()
- func (x *GeositeConfig) String() string
- type GreatDomainSetConfig
- func (*GreatDomainSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GreatDomainSetConfig) GetExNames() []string
- func (x *GreatDomainSetConfig) GetInNames() []string
- func (x *GreatDomainSetConfig) GetName() string
- func (x *GreatDomainSetConfig) GetOppositeName() string
- func (*GreatDomainSetConfig) ProtoMessage()
- func (x *GreatDomainSetConfig) ProtoReflect() protoreflect.Message
- func (x *GreatDomainSetConfig) Reset()
- func (x *GreatDomainSetConfig) String() string
- type GreatIPSetConfig
- func (*GreatIPSetConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GreatIPSetConfig) GetExNames() []string
- func (x *GreatIPSetConfig) GetInNames() []string
- func (x *GreatIPSetConfig) GetName() string
- func (x *GreatIPSetConfig) GetOppositeName() string
- func (*GreatIPSetConfig) ProtoMessage()
- func (x *GreatIPSetConfig) ProtoReflect() protoreflect.Message
- func (x *GreatIPSetConfig) Reset()
- func (x *GreatIPSetConfig) String() string
- type GrpcConfig
- func (*GrpcConfig) Descriptor() ([]byte, []int)deprecated
- func (x *GrpcConfig) GetAddress() string
- func (x *GrpcConfig) GetClientCert() []byte
- func (x *GrpcConfig) GetGid() int32
- func (x *GrpcConfig) GetPort() uint32
- func (x *GrpcConfig) GetUid() int32
- func (*GrpcConfig) ProtoMessage()
- func (x *GrpcConfig) ProtoReflect() protoreflect.Message
- func (x *GrpcConfig) Reset()
- func (x *GrpcConfig) String() string
- type HandlerConfig
- func (*HandlerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HandlerConfig) GetChain() *ChainHandlerConfig
- func (x *HandlerConfig) GetOutbound() *OutboundHandlerConfig
- func (x *HandlerConfig) GetSupportIpv6() bool
- func (h *HandlerConfig) GetTag() string
- func (x *HandlerConfig) GetType() isHandlerConfig_Type
- func (*HandlerConfig) ProtoMessage()
- func (x *HandlerConfig) ProtoReflect() protoreflect.Message
- func (x *HandlerConfig) Reset()
- func (x *HandlerConfig) String() string
- type HandlerConfig_Chain
- type HandlerConfig_Outbound
- type HandlerConfigs
- type InboundManagerConfig
- func (*InboundManagerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *InboundManagerConfig) GetHandlers() []*ProxyInboundConfig
- func (x *InboundManagerConfig) GetMultiInbounds() []*MultiProxyInboundConfig
- func (*InboundManagerConfig) ProtoMessage()
- func (x *InboundManagerConfig) ProtoReflect() protoreflect.Message
- func (x *InboundManagerConfig) Reset()
- func (x *InboundManagerConfig) String() string
- type Level
- type LoggerConfig
- func (*LoggerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LoggerConfig) GetConsoleWriter() bool
- func (x *LoggerConfig) GetFilePath() string
- func (x *LoggerConfig) GetLogAppId() bool
- func (x *LoggerConfig) GetLogFileDir() string
- func (x *LoggerConfig) GetLogLevel() Level
- func (x *LoggerConfig) GetRedact() bool
- func (x *LoggerConfig) GetShowCaller() bool
- func (x *LoggerConfig) GetShowColor() bool
- func (x *LoggerConfig) GetUserLog() bool
- func (*LoggerConfig) ProtoMessage()
- func (x *LoggerConfig) ProtoReflect() protoreflect.Message
- func (x *LoggerConfig) Reset()
- func (x *LoggerConfig) String() string
- type Mode
- type MultiProxyInboundConfig
- func (*MultiProxyInboundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProxyInboundConfig) GetAddress() string
- func (x *MultiProxyInboundConfig) GetPorts() []uint32
- func (x *MultiProxyInboundConfig) GetProtocols() []*anypb.Any
- func (x *MultiProxyInboundConfig) GetSecurityConfigs() []*MultiProxyInboundConfig_Security
- func (x *MultiProxyInboundConfig) GetSocket() *SocketConfig
- func (x *MultiProxyInboundConfig) GetTag() string
- func (x *MultiProxyInboundConfig) GetTransportProtocols() []*MultiProxyInboundConfig_Protocol
- func (x *MultiProxyInboundConfig) GetUsers() []*UserConfig
- func (*MultiProxyInboundConfig) ProtoMessage()
- func (x *MultiProxyInboundConfig) ProtoReflect() protoreflect.Message
- func (x *MultiProxyInboundConfig) Reset()
- func (x *MultiProxyInboundConfig) String() string
- type MultiProxyInboundConfig_Protocol
- func (*MultiProxyInboundConfig_Protocol) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProxyInboundConfig_Protocol) GetAlpn() string
- func (x *MultiProxyInboundConfig_Protocol) GetAlways() bool
- func (x *MultiProxyInboundConfig_Protocol) GetGrpc() *grpc.GrpcConfig
- func (x *MultiProxyInboundConfig_Protocol) GetH2() bool
- func (x *MultiProxyInboundConfig_Protocol) GetHttp() *http.HttpConfig
- func (x *MultiProxyInboundConfig_Protocol) GetHttpupgrade() *httpupgrade.HttpUpgradeConfig
- func (x *MultiProxyInboundConfig_Protocol) GetPath() string
- func (x *MultiProxyInboundConfig_Protocol) GetProtocol() isMultiProxyInboundConfig_Protocol_Protocol
- func (x *MultiProxyInboundConfig_Protocol) GetSni() string
- func (x *MultiProxyInboundConfig_Protocol) GetSplithttp() *splithttp.SplitHttpConfig
- func (x *MultiProxyInboundConfig_Protocol) GetTcp() *tcp.TcpConfig
- func (x *MultiProxyInboundConfig_Protocol) GetWebsocket() *websocket.WebsocketConfig
- func (*MultiProxyInboundConfig_Protocol) ProtoMessage()
- func (x *MultiProxyInboundConfig_Protocol) ProtoReflect() protoreflect.Message
- func (x *MultiProxyInboundConfig_Protocol) Reset()
- func (x *MultiProxyInboundConfig_Protocol) String() string
- type MultiProxyInboundConfig_Protocol_Grpc
- type MultiProxyInboundConfig_Protocol_Http
- type MultiProxyInboundConfig_Protocol_Httpupgrade
- type MultiProxyInboundConfig_Protocol_Splithttp
- type MultiProxyInboundConfig_Protocol_Tcp
- type MultiProxyInboundConfig_Protocol_Websocket
- type MultiProxyInboundConfig_Security
- func (*MultiProxyInboundConfig_Security) Descriptor() ([]byte, []int)deprecated
- func (x *MultiProxyInboundConfig_Security) GetAlways() bool
- func (x *MultiProxyInboundConfig_Security) GetDomains() []string
- func (x *MultiProxyInboundConfig_Security) GetReality() *reality.RealityConfig
- func (x *MultiProxyInboundConfig_Security) GetRegularExpression() string
- func (x *MultiProxyInboundConfig_Security) GetSecurity() isMultiProxyInboundConfig_Security_Security
- func (x *MultiProxyInboundConfig_Security) GetTls() *tls.TlsConfig
- func (*MultiProxyInboundConfig_Security) ProtoMessage()
- func (x *MultiProxyInboundConfig_Security) ProtoReflect() protoreflect.Message
- func (x *MultiProxyInboundConfig_Security) Reset()
- func (x *MultiProxyInboundConfig_Security) String() string
- type MultiProxyInboundConfig_Security_Reality
- type MultiProxyInboundConfig_Security_Tls
- type MuxConfig
- func (*MuxConfig) Descriptor() ([]byte, []int)deprecated
- func (x *MuxConfig) GetMaxConcurrency() uint32
- func (x *MuxConfig) GetMaxConnection() uint32
- func (*MuxConfig) ProtoMessage()
- func (x *MuxConfig) ProtoReflect() protoreflect.Message
- func (x *MuxConfig) Reset()
- func (x *MuxConfig) String() string
- type OutboundConfig
- func (*OutboundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OutboundConfig) GetChainHandlers() []*ChainHandlerConfig
- func (x *OutboundConfig) GetHandlers() []*HandlerConfig
- func (x *OutboundConfig) GetOutboundHandlers() []*OutboundHandlerConfig
- func (*OutboundConfig) ProtoMessage()
- func (x *OutboundConfig) ProtoReflect() protoreflect.Message
- func (x *OutboundConfig) Reset()
- func (x *OutboundConfig) String() string
- type OutboundHandlerConfig
- func (*OutboundHandlerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *OutboundHandlerConfig) GetAddress() string
- func (x *OutboundHandlerConfig) GetDomainStrategy() DomainStrategy
- func (x *OutboundHandlerConfig) GetEnableMux() bool
- func (x *OutboundHandlerConfig) GetMuxConfig() *MuxConfig
- func (x *OutboundHandlerConfig) GetPort() uint32
- func (x *OutboundHandlerConfig) GetPorts() []*net.PortRange
- func (x *OutboundHandlerConfig) GetProtocol() *anypb.Any
- func (x *OutboundHandlerConfig) GetTag() string
- func (x *OutboundHandlerConfig) GetTransport() *TransportConfig
- func (x *OutboundHandlerConfig) GetUot() bool
- func (*OutboundHandlerConfig) ProtoMessage()
- func (x *OutboundHandlerConfig) ProtoReflect() protoreflect.Message
- func (x *OutboundHandlerConfig) Reset()
- func (x *OutboundHandlerConfig) String() string
- type PlainDnsServer
- func (*PlainDnsServer) Descriptor() ([]byte, []int)deprecated
- func (x *PlainDnsServer) GetAddresses() []string
- func (x *PlainDnsServer) GetUseDefaultDns() bool
- func (*PlainDnsServer) ProtoMessage()
- func (x *PlainDnsServer) ProtoReflect() protoreflect.Message
- func (x *PlainDnsServer) Reset()
- func (x *PlainDnsServer) String() string
- type PolicyConfig
- func (*PolicyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyConfig) GetConnectionIdleTimeout() uint32
- func (x *PolicyConfig) GetDefaultBufferSize() int32
- func (x *PolicyConfig) GetDownLinkOnlyTimeout() uint32
- func (x *PolicyConfig) GetHandshakeTimeout() uint32
- func (x *PolicyConfig) GetInboundStats() bool
- func (x *PolicyConfig) GetLinkStats() bool
- func (x *PolicyConfig) GetOutboundStats() bool
- func (x *PolicyConfig) GetSessionStats() bool
- func (x *PolicyConfig) GetUdpIdleTimeout() uint32
- func (x *PolicyConfig) GetUpLinkOnlyTimeout() uint32
- func (x *PolicyConfig) GetUserPolicyMap() map[uint32]*UserPolicy
- func (x *PolicyConfig) GetUserStats() bool
- func (*PolicyConfig) ProtoMessage()
- func (x *PolicyConfig) ProtoReflect() protoreflect.Message
- func (x *PolicyConfig) Reset()
- func (x *PolicyConfig) String() string
- type ProxyInboundConfig
- func (*ProxyInboundConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyInboundConfig) GetAddress() string
- func (x *ProxyInboundConfig) GetPort() uint32
- func (x *ProxyInboundConfig) GetPorts() []uint32
- func (x *ProxyInboundConfig) GetProtocol() *anypb.Any
- func (x *ProxyInboundConfig) GetProtocols() []*anypb.Any
- func (x *ProxyInboundConfig) GetTag() string
- func (x *ProxyInboundConfig) GetTransport() *TransportConfig
- func (x *ProxyInboundConfig) GetUsers() []*UserConfig
- func (*ProxyInboundConfig) ProtoMessage()
- func (x *ProxyInboundConfig) ProtoReflect() protoreflect.Message
- func (x *ProxyInboundConfig) Reset()
- func (x *ProxyInboundConfig) String() string
- type QuicDnsServer
- func (*QuicDnsServer) Descriptor() ([]byte, []int)deprecated
- func (x *QuicDnsServer) GetAddress() string
- func (x *QuicDnsServer) GetServerName() string
- func (*QuicDnsServer) ProtoMessage()
- func (x *QuicDnsServer) ProtoReflect() protoreflect.Message
- func (x *QuicDnsServer) Reset()
- func (x *QuicDnsServer) String() string
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetDomain() string
- func (x *Record) GetIp() []string
- func (x *Record) GetProxiedDomain() string
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
- type RouterConfig
- type RuleConfig
- func (*RuleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *RuleConfig) GetAllTags() []string
- func (x *RuleConfig) GetAppIds() []*AppId
- func (x *RuleConfig) GetAppTags() []string
- func (x *RuleConfig) GetDomainTags() []string
- func (x *RuleConfig) GetDstCidrs() []string
- func (x *RuleConfig) GetDstIpTags() []string
- func (x *RuleConfig) GetDstPortRanges() []*net.PortRange
- func (x *RuleConfig) GetFakeIp() bool
- func (x *RuleConfig) GetGeoDomains() []*geo.Domain
- func (x *RuleConfig) GetInboundTags() []string
- func (x *RuleConfig) GetIpv6() bool
- func (x *RuleConfig) GetMatchAll() bool
- func (x *RuleConfig) GetNetworks() []net.Network
- func (x *RuleConfig) GetOutboundTag() string
- func (x *RuleConfig) GetProtocols() []string
- func (x *RuleConfig) GetResolveDomain() bool
- func (x *RuleConfig) GetRuleName() string
- func (x *RuleConfig) GetSelectorTag() string
- func (x *RuleConfig) GetSkipSniff() bool
- func (x *RuleConfig) GetSrcCidrs() []string
- func (x *RuleConfig) GetSrcIpTags() []string
- func (x *RuleConfig) GetSrcPortRanges() []*net.PortRange
- func (x *RuleConfig) GetUsernames() []string
- func (*RuleConfig) ProtoMessage()
- func (x *RuleConfig) ProtoReflect() protoreflect.Message
- func (x *RuleConfig) Reset()
- func (x *RuleConfig) String() string
- type SelectorConfig
- func (*SelectorConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SelectorConfig) GetBalanceStrategy() SelectorConfig_BalanceStrategy
- func (x *SelectorConfig) GetFilter() *SelectorConfig_Filter
- func (x *SelectorConfig) GetLandHandlers() []int64
- func (x *SelectorConfig) GetSelectFromOm() bool
- func (x *SelectorConfig) GetStrategy() SelectorConfig_SelectingStrategy
- func (x *SelectorConfig) GetTag() string
- func (*SelectorConfig) ProtoMessage()
- func (x *SelectorConfig) ProtoReflect() protoreflect.Message
- func (x *SelectorConfig) Reset()
- func (x *SelectorConfig) String() string
- type SelectorConfig_BalanceStrategy
- func (SelectorConfig_BalanceStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x SelectorConfig_BalanceStrategy) Enum() *SelectorConfig_BalanceStrategy
- func (SelectorConfig_BalanceStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x SelectorConfig_BalanceStrategy) Number() protoreflect.EnumNumber
- func (x SelectorConfig_BalanceStrategy) String() string
- func (SelectorConfig_BalanceStrategy) Type() protoreflect.EnumType
- type SelectorConfig_Filter
- func (*SelectorConfig_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *SelectorConfig_Filter) GetAll() bool
- func (x *SelectorConfig_Filter) GetGroupTags() []string
- func (x *SelectorConfig_Filter) GetHandlerIds() []int64
- func (x *SelectorConfig_Filter) GetInverse() bool
- func (x *SelectorConfig_Filter) GetPrefixes() []string
- func (x *SelectorConfig_Filter) GetSelected() bool
- func (x *SelectorConfig_Filter) GetSubIds() []int64
- func (x *SelectorConfig_Filter) GetTags() []string
- func (*SelectorConfig_Filter) ProtoMessage()
- func (x *SelectorConfig_Filter) ProtoReflect() protoreflect.Message
- func (x *SelectorConfig_Filter) Reset()
- func (x *SelectorConfig_Filter) String() string
- type SelectorConfig_SelectingStrategy
- func (SelectorConfig_SelectingStrategy) Descriptor() protoreflect.EnumDescriptor
- func (x SelectorConfig_SelectingStrategy) Enum() *SelectorConfig_SelectingStrategy
- func (SelectorConfig_SelectingStrategy) EnumDescriptor() ([]byte, []int)deprecated
- func (x SelectorConfig_SelectingStrategy) Number() protoreflect.EnumNumber
- func (x SelectorConfig_SelectingStrategy) String() string
- func (SelectorConfig_SelectingStrategy) Type() protoreflect.EnumType
- type SelectorsConfig
- type SocketConfig
- func (*SocketConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SocketConfig) GetAcceptProxyProtocol() bool
- func (x *SocketConfig) GetBindAddress() []byte
- func (x *SocketConfig) GetBindPort() uint32
- func (x *SocketConfig) GetBindToDevice() uint32
- func (x *SocketConfig) GetDialTimeout() uint32
- func (x *SocketConfig) GetForceBufSize() bool
- func (x *SocketConfig) GetLocalAddr4() string
- func (x *SocketConfig) GetLocalAddr6() string
- func (x *SocketConfig) GetMark() uint32
- func (x *SocketConfig) GetReceiveOriginalDestAddress() bool
- func (x *SocketConfig) GetRxBufSize() int64
- func (x *SocketConfig) GetTcpKeepAliveIdle() int32
- func (x *SocketConfig) GetTcpKeepAliveInterval() int32
- func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState
- func (x *SocketConfig) GetTfoQueueLength() uint32
- func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode
- func (x *SocketConfig) GetTxBufSize() int64
- func (*SocketConfig) ProtoMessage()
- func (x *SocketConfig) ProtoReflect() protoreflect.Message
- func (x *SocketConfig) Reset()
- func (x *SocketConfig) String() string
- type SocketConfig_TCPFastOpenState
- func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor
- func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState
- func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int)deprecated
- func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber
- func (x SocketConfig_TCPFastOpenState) String() string
- func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType
- type SocketConfig_TProxyMode
- func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor
- func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode
- func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber
- func (x SocketConfig_TProxyMode) String() string
- func (SocketConfig_TProxyMode) Type() protoreflect.EnumType
- type SubscriptionConfig
- func (*SubscriptionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SubscriptionConfig) GetInterval() uint32
- func (x *SubscriptionConfig) GetLastUpdateTime() uint32
- func (x *SubscriptionConfig) GetPeriodicUpdate() bool
- func (*SubscriptionConfig) ProtoMessage()
- func (x *SubscriptionConfig) ProtoReflect() protoreflect.Message
- func (x *SubscriptionConfig) Reset()
- func (x *SubscriptionConfig) String() string
- type SysProxyConfig
- func (*SysProxyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SysProxyConfig) GetHttpProxyAddress() string
- func (x *SysProxyConfig) GetHttpProxyPort() uint32
- func (x *SysProxyConfig) GetHttpsProxyAddress() string
- func (x *SysProxyConfig) GetHttpsProxyPort() uint32
- func (x *SysProxyConfig) GetSocksProxyAddress() string
- func (x *SysProxyConfig) GetSocksProxyPort() uint32
- func (*SysProxyConfig) ProtoMessage()
- func (x *SysProxyConfig) ProtoReflect() protoreflect.Message
- func (x *SysProxyConfig) Reset()
- func (x *SysProxyConfig) String() string
- type TlsDnsServer
- type TmConfig
- func (*TmConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TmConfig) GetDbPath() string
- func (x *TmConfig) GetDefaultNicMonitor() bool
- func (x *TmConfig) GetDispatcher() *DispatcherConfig
- func (x *TmConfig) GetDns() *DnsConfig
- func (x *TmConfig) GetGeo() *GeoConfig
- func (x *TmConfig) GetGrpc() *GrpcConfig
- func (x *TmConfig) GetHysteria2RejectQuic() bool
- func (x *TmConfig) GetInboundManager() *InboundManagerConfig
- func (x *TmConfig) GetLog() *LoggerConfig
- func (x *TmConfig) GetOutbound() *OutboundConfig
- func (x *TmConfig) GetPolicy() *PolicyConfig
- func (x *TmConfig) GetRedirectStdErr() string
- func (x *TmConfig) GetRejectIpv6() bool
- func (x *TmConfig) GetRouter() *RouterConfig
- func (x *TmConfig) GetSelectors() *SelectorsConfig
- func (x *TmConfig) GetServicePort() uint32
- func (x *TmConfig) GetServiceSecret() string
- func (x *TmConfig) GetSubscription() *SubscriptionConfig
- func (x *TmConfig) GetSysProxy() *SysProxyConfig
- func (x *TmConfig) GetTun() *TunConfig
- func (x *TmConfig) GetUseRealLatency() bool
- func (x *TmConfig) GetWfp() *WfpConfig
- func (*TmConfig) ProtoMessage()
- func (x *TmConfig) ProtoReflect() protoreflect.Message
- func (x *TmConfig) Reset()
- func (x *TmConfig) String() string
- type TransportConfig
- func (*TransportConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TransportConfig) GetGrpc() *grpc.GrpcConfig
- func (x *TransportConfig) GetHttp() *http.HttpConfig
- func (x *TransportConfig) GetHttpupgrade() *httpupgrade.HttpUpgradeConfig
- func (x *TransportConfig) GetKcp() *kcp.KcpConfig
- func (x *TransportConfig) GetProtocol() isTransportConfig_Protocol
- func (x *TransportConfig) GetQuic() *quic.QuicConfig
- func (x *TransportConfig) GetReality() *reality.RealityConfig
- func (x *TransportConfig) GetSecurity() isTransportConfig_Security
- func (x *TransportConfig) GetSocket() *SocketConfig
- func (x *TransportConfig) GetSplithttp() *splithttp.SplitHttpConfig
- func (x *TransportConfig) GetTcp() *tcp.TcpConfig
- func (x *TransportConfig) GetTls() *tls.TlsConfig
- func (x *TransportConfig) GetWebsocket() *websocket.WebsocketConfig
- func (*TransportConfig) ProtoMessage()
- func (x *TransportConfig) ProtoReflect() protoreflect.Message
- func (x *TransportConfig) Reset()
- func (x *TransportConfig) String() string
- type TransportConfig_Grpc
- type TransportConfig_Http
- type TransportConfig_Httpupgrade
- type TransportConfig_Kcp
- type TransportConfig_Quic
- type TransportConfig_Reality
- type TransportConfig_Splithttp
- type TransportConfig_Tcp
- type TransportConfig_Tls
- type TransportConfig_Websocket
- type TunConfig
- func (*TunConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TunConfig) GetDevice() *TunDeviceConfig
- func (x *TunConfig) GetMode() Mode
- func (x *TunConfig) GetShouldBindDevice() bool
- func (x *TunConfig) GetTag() string
- func (x *TunConfig) GetTun46Setting() TunConfig_TUN46Setting
- func (*TunConfig) ProtoMessage()
- func (x *TunConfig) ProtoReflect() protoreflect.Message
- func (x *TunConfig) Reset()
- func (x *TunConfig) String() string
- type TunConfig_TUN46Setting
- func (TunConfig_TUN46Setting) Descriptor() protoreflect.EnumDescriptor
- func (x TunConfig_TUN46Setting) Enum() *TunConfig_TUN46Setting
- func (TunConfig_TUN46Setting) EnumDescriptor() ([]byte, []int)deprecated
- func (x TunConfig_TUN46Setting) Number() protoreflect.EnumNumber
- func (x TunConfig_TUN46Setting) String() string
- func (TunConfig_TUN46Setting) Type() protoreflect.EnumType
- type TunDeviceConfig
- func (*TunDeviceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TunDeviceConfig) GetBlackListApps() []string
- func (x *TunDeviceConfig) GetCidr4() string
- func (x *TunDeviceConfig) GetCidr6() string
- func (x *TunDeviceConfig) GetDns4() []string
- func (x *TunDeviceConfig) GetDns6() []string
- func (x *TunDeviceConfig) GetFd() uint32
- func (x *TunDeviceConfig) GetMtu() uint32
- func (x *TunDeviceConfig) GetName() string
- func (x *TunDeviceConfig) GetPath() string
- func (x *TunDeviceConfig) GetRoutes4() []string
- func (x *TunDeviceConfig) GetRoutes6() []string
- func (x *TunDeviceConfig) GetWhiteListApps() []string
- func (*TunDeviceConfig) ProtoMessage()
- func (x *TunDeviceConfig) ProtoReflect() protoreflect.Message
- func (x *TunDeviceConfig) Reset()
- func (x *TunDeviceConfig) String() string
- type UserConfig
- func (*UserConfig) Descriptor() ([]byte, []int)deprecated
- func (x *UserConfig) GetId() string
- func (x *UserConfig) GetSecret() string
- func (x *UserConfig) GetUserLevel() uint32
- func (*UserConfig) ProtoMessage()
- func (x *UserConfig) ProtoReflect() protoreflect.Message
- func (x *UserConfig) Reset()
- func (x *UserConfig) String() string
- type UserManagerConfig
- func (*UserManagerConfig) Descriptor() ([]byte, []int)deprecated
- func (x *UserManagerConfig) GetUsers() []*UserConfig
- func (*UserManagerConfig) ProtoMessage()
- func (x *UserManagerConfig) ProtoReflect() protoreflect.Message
- func (x *UserManagerConfig) Reset()
- func (x *UserManagerConfig) String() string
- type UserPolicy
- type WfpConfig
Constants ¶
This section is empty.
Variables ¶
var ( SocketConfig_TCPFastOpenState_name = map[int32]string{ 0: "AsIs", 1: "Enable", 2: "Disable", } SocketConfig_TCPFastOpenState_value = map[string]int32{ "AsIs": 0, "Enable": 1, "Disable": 2, } )
Enum value maps for SocketConfig_TCPFastOpenState.
var ( SocketConfig_TProxyMode_name = map[int32]string{ 0: "Off", 1: "TProxy", 2: "Redirect", } SocketConfig_TProxyMode_value = map[string]int32{ "Off": 0, "TProxy": 1, "Redirect": 2, } )
Enum value maps for SocketConfig_TProxyMode.
var ( DnsType_name = map[int32]string{ 0: "DnsType_A", 1: "DnsType_AAAA", } DnsType_value = map[string]int32{ "DnsType_A": 0, "DnsType_AAAA": 1, } )
Enum value maps for DnsType.
var ( Level_name = map[int32]string{ 0: "DEBUG", 1: "INFO", 2: "WARN", 3: "ERROR", 4: "FATAL", 5: "DISABLED", } Level_value = map[string]int32{ "DEBUG": 0, "INFO": 1, "WARN": 2, "ERROR": 3, "FATAL": 4, "DISABLED": 5, } )
Enum value maps for Level.
var ( DomainStrategy_name = map[int32]string{ 0: "PreferIPv4", 1: "PreferIPv6", 2: "IPv4Only", 43: "IPv6Only", } DomainStrategy_value = map[string]int32{ "PreferIPv4": 0, "PreferIPv6": 1, "IPv4Only": 2, "IPv6Only": 43, } )
Enum value maps for DomainStrategy.
var ( SelectorConfig_SelectingStrategy_name = map[int32]string{ 0: "ALL", 1: "ALL_OK", 2: "LEAST_PING", 3: "MOST_THROUGHPUT", 4: "TOP_PING", 5: "TOP_THROUGHPUT", } SelectorConfig_SelectingStrategy_value = map[string]int32{ "ALL": 0, "ALL_OK": 1, "LEAST_PING": 2, "MOST_THROUGHPUT": 3, "TOP_PING": 4, "TOP_THROUGHPUT": 5, } )
Enum value maps for SelectorConfig_SelectingStrategy.
var ( SelectorConfig_BalanceStrategy_name = map[int32]string{ 0: "RANDOM", 1: "MEMORY", } SelectorConfig_BalanceStrategy_value = map[string]int32{ "RANDOM": 0, "MEMORY": 1, } )
Enum value maps for SelectorConfig_BalanceStrategy.
var ( AppId_Type_name = map[int32]string{ 0: "Keyword", 1: "Prefix", 2: "Exact", } AppId_Type_value = map[string]int32{ "Keyword": 0, "Prefix": 1, "Exact": 2, } )
Enum value maps for AppId_Type.
var ( Mode_name = map[int32]string{ 0: "MODE_SYSTEM", 1: "MODE_GVISOR", } Mode_value = map[string]int32{ "MODE_SYSTEM": 0, "MODE_GVISOR": 1, } )
Enum value maps for Mode.
var ( TunConfig_TUN46Setting_name = map[int32]string{ 0: "FOUR_ONLY", 1: "BOTH", 2: "DYNAMIC", } TunConfig_TUN46Setting_value = map[string]int32{ "FOUR_ONLY": 0, "BOTH": 1, "DYNAMIC": 2, } )
Enum value maps for TunConfig_TUN46Setting.
var File_protos_client_proto protoreflect.FileDescriptor
var File_protos_dispatcher_proto protoreflect.FileDescriptor
var File_protos_dlhelper_proto protoreflect.FileDescriptor
var File_protos_dns_proto protoreflect.FileDescriptor
var File_protos_geo_proto protoreflect.FileDescriptor
var File_protos_inbound_proto protoreflect.FileDescriptor
var File_protos_logger_proto protoreflect.FileDescriptor
var File_protos_outbound_proto protoreflect.FileDescriptor
var File_protos_policy_proto protoreflect.FileDescriptor
var File_protos_router_proto protoreflect.FileDescriptor
var File_protos_sysproxy_proto protoreflect.FileDescriptor
var File_protos_transport_proto protoreflect.FileDescriptor
var File_protos_tun_proto protoreflect.FileDescriptor
var File_protos_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AppId ¶
type AppId struct {
Type AppId_Type `protobuf:"varint,1,opt,name=type,proto3,enum=x.AppId_Type" json:"type,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*AppId) Descriptor
deprecated
func (*AppId) GetType ¶
func (x *AppId) GetType() AppId_Type
func (*AppId) ProtoMessage ¶
func (*AppId) ProtoMessage()
func (*AppId) ProtoReflect ¶
func (x *AppId) ProtoReflect() protoreflect.Message
type AppId_Type ¶
type AppId_Type int32
const ( // The value is used as is. "keyword" AppId_Keyword AppId_Type = 0 AppId_Prefix AppId_Type = 1 AppId_Exact AppId_Type = 2 )
func (AppId_Type) Descriptor ¶
func (AppId_Type) Descriptor() protoreflect.EnumDescriptor
func (AppId_Type) Enum ¶
func (x AppId_Type) Enum() *AppId_Type
func (AppId_Type) EnumDescriptor
deprecated
func (AppId_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use AppId_Type.Descriptor instead.
func (AppId_Type) Number ¶
func (x AppId_Type) Number() protoreflect.EnumNumber
func (AppId_Type) String ¶
func (x AppId_Type) String() string
func (AppId_Type) Type ¶
func (AppId_Type) Type() protoreflect.EnumType
type AppSetConfig ¶
type AppSetConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
AppIds []*AppId `protobuf:"bytes,2,rep,name=app_ids,json=appIds,proto3" json:"app_ids,omitempty"`
ClashFiles []string `protobuf:"bytes,3,rep,name=clash_files,json=clashFiles,proto3" json:"clash_files,omitempty"`
// contains filtered or unexported fields
}
func (*AppSetConfig) Descriptor
deprecated
func (*AppSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use AppSetConfig.ProtoReflect.Descriptor instead.
func (*AppSetConfig) GetAppIds ¶
func (x *AppSetConfig) GetAppIds() []*AppId
func (*AppSetConfig) GetClashFiles ¶
func (x *AppSetConfig) GetClashFiles() []string
func (*AppSetConfig) GetName ¶
func (x *AppSetConfig) GetName() string
func (*AppSetConfig) ProtoMessage ¶
func (*AppSetConfig) ProtoMessage()
func (*AppSetConfig) ProtoReflect ¶
func (x *AppSetConfig) ProtoReflect() protoreflect.Message
func (*AppSetConfig) Reset ¶
func (x *AppSetConfig) Reset()
func (*AppSetConfig) String ¶
func (x *AppSetConfig) String() string
type AtomicDomainSetConfig ¶
type AtomicDomainSetConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// either one of the following two fields should be set
Domains []*geo.Domain `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"`
Geosite *GeositeConfig `protobuf:"bytes,3,opt,name=geosite,proto3" json:"geosite,omitempty"`
UseBloomFilter bool `protobuf:"varint,4,opt,name=use_bloom_filter,json=useBloomFilter,proto3" json:"use_bloom_filter,omitempty"`
ClashFiles []string `protobuf:"bytes,5,rep,name=clash_files,json=clashFiles,proto3" json:"clash_files,omitempty"`
// contains filtered or unexported fields
}
func (*AtomicDomainSetConfig) Descriptor
deprecated
func (*AtomicDomainSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use AtomicDomainSetConfig.ProtoReflect.Descriptor instead.
func (*AtomicDomainSetConfig) GetClashFiles ¶
func (x *AtomicDomainSetConfig) GetClashFiles() []string
func (*AtomicDomainSetConfig) GetDomains ¶
func (x *AtomicDomainSetConfig) GetDomains() []*geo.Domain
func (*AtomicDomainSetConfig) GetGeosite ¶
func (x *AtomicDomainSetConfig) GetGeosite() *GeositeConfig
func (*AtomicDomainSetConfig) GetName ¶
func (x *AtomicDomainSetConfig) GetName() string
func (*AtomicDomainSetConfig) GetUseBloomFilter ¶
func (x *AtomicDomainSetConfig) GetUseBloomFilter() bool
func (*AtomicDomainSetConfig) ProtoMessage ¶
func (*AtomicDomainSetConfig) ProtoMessage()
func (*AtomicDomainSetConfig) ProtoReflect ¶
func (x *AtomicDomainSetConfig) ProtoReflect() protoreflect.Message
func (*AtomicDomainSetConfig) Reset ¶
func (x *AtomicDomainSetConfig) Reset()
func (*AtomicDomainSetConfig) String ¶
func (x *AtomicDomainSetConfig) String() string
type AtomicIPSetConfig ¶
type AtomicIPSetConfig struct {
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Cidrs []*geo.CIDR `protobuf:"bytes,2,rep,name=cidrs,proto3" json:"cidrs,omitempty"`
Geoip *GeoIPConfig `protobuf:"bytes,1,opt,name=geoip,proto3" json:"geoip,omitempty"`
Inverse bool `protobuf:"varint,4,opt,name=inverse,proto3" json:"inverse,omitempty"`
ClashFiles []string `protobuf:"bytes,5,rep,name=clash_files,json=clashFiles,proto3" json:"clash_files,omitempty"`
// contains filtered or unexported fields
}
func (*AtomicIPSetConfig) Descriptor
deprecated
func (*AtomicIPSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use AtomicIPSetConfig.ProtoReflect.Descriptor instead.
func (*AtomicIPSetConfig) GetCidrs ¶
func (x *AtomicIPSetConfig) GetCidrs() []*geo.CIDR
func (*AtomicIPSetConfig) GetClashFiles ¶
func (x *AtomicIPSetConfig) GetClashFiles() []string
func (*AtomicIPSetConfig) GetGeoip ¶
func (x *AtomicIPSetConfig) GetGeoip() *GeoIPConfig
func (*AtomicIPSetConfig) GetInverse ¶
func (x *AtomicIPSetConfig) GetInverse() bool
func (*AtomicIPSetConfig) GetName ¶
func (x *AtomicIPSetConfig) GetName() string
func (*AtomicIPSetConfig) ProtoMessage ¶
func (*AtomicIPSetConfig) ProtoMessage()
func (*AtomicIPSetConfig) ProtoReflect ¶
func (x *AtomicIPSetConfig) ProtoReflect() protoreflect.Message
func (*AtomicIPSetConfig) Reset ¶
func (x *AtomicIPSetConfig) Reset()
func (*AtomicIPSetConfig) String ¶
func (x *AtomicIPSetConfig) String() string
type ChainHandlerConfig ¶
type ChainHandlerConfig struct {
Handlers []*OutboundHandlerConfig `protobuf:"bytes,1,rep,name=handlers,proto3" json:"handlers,omitempty"`
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
// contains filtered or unexported fields
}
func (*ChainHandlerConfig) Descriptor
deprecated
func (*ChainHandlerConfig) Descriptor() ([]byte, []int)
Deprecated: Use ChainHandlerConfig.ProtoReflect.Descriptor instead.
func (*ChainHandlerConfig) GetHandlers ¶
func (x *ChainHandlerConfig) GetHandlers() []*OutboundHandlerConfig
func (*ChainHandlerConfig) GetTag ¶
func (x *ChainHandlerConfig) GetTag() string
func (*ChainHandlerConfig) ProtoMessage ¶
func (*ChainHandlerConfig) ProtoMessage()
func (*ChainHandlerConfig) ProtoReflect ¶
func (x *ChainHandlerConfig) ProtoReflect() protoreflect.Message
func (*ChainHandlerConfig) Reset ¶
func (x *ChainHandlerConfig) Reset()
func (*ChainHandlerConfig) String ¶
func (x *ChainHandlerConfig) String() string
type DispatcherConfig ¶
type DispatcherConfig struct {
// SniffingConfig sniff = 1;
FallbackToProxy bool `protobuf:"varint,2,opt,name=fallback_to_proxy,json=fallbackToProxy,proto3" json:"fallback_to_proxy,omitempty"`
FallbackToDomain bool `protobuf:"varint,3,opt,name=fallback_to_domain,json=fallbackToDomain,proto3" json:"fallback_to_domain,omitempty"`
DestinationOverride []string `protobuf:"bytes,4,rep,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
Sniff bool `protobuf:"varint,5,opt,name=sniff,proto3" json:"sniff,omitempty"`
Ipv6FallbackToDomain bool `` /* 126-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DispatcherConfig) Descriptor
deprecated
func (*DispatcherConfig) Descriptor() ([]byte, []int)
Deprecated: Use DispatcherConfig.ProtoReflect.Descriptor instead.
func (*DispatcherConfig) GetDestinationOverride ¶
func (x *DispatcherConfig) GetDestinationOverride() []string
func (*DispatcherConfig) GetFallbackToDomain ¶
func (x *DispatcherConfig) GetFallbackToDomain() bool
func (*DispatcherConfig) GetFallbackToProxy ¶
func (x *DispatcherConfig) GetFallbackToProxy() bool
func (*DispatcherConfig) GetIpv6FallbackToDomain ¶
func (x *DispatcherConfig) GetIpv6FallbackToDomain() bool
func (*DispatcherConfig) GetSniff ¶
func (x *DispatcherConfig) GetSniff() bool
func (*DispatcherConfig) ProtoMessage ¶
func (*DispatcherConfig) ProtoMessage()
func (*DispatcherConfig) ProtoReflect ¶
func (x *DispatcherConfig) ProtoReflect() protoreflect.Message
func (*DispatcherConfig) Reset ¶
func (x *DispatcherConfig) Reset()
func (*DispatcherConfig) String ¶
func (x *DispatcherConfig) String() string
type DnsConfig ¶
type DnsConfig struct {
Records []*Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
DnsServers []*DnsServerConfig `protobuf:"bytes,3,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"`
DnsRules []*DnsRuleConfig `protobuf:"bytes,4,rep,name=dns_rules,json=dnsRules,proto3" json:"dns_rules,omitempty"`
EnableFakeDns bool `protobuf:"varint,5,opt,name=enable_fake_dns,json=enableFakeDns,proto3" json:"enable_fake_dns,omitempty"`
// if not zero, dns responses will be cached for this duration.
// if zero, the minimum ttl of all answers will be used.
CacheDuration uint32 `protobuf:"varint,6,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"`
// contains filtered or unexported fields
}
func (*DnsConfig) Descriptor
deprecated
func (*DnsConfig) GetCacheDuration ¶ added in v1.0.2
func (*DnsConfig) GetDnsRules ¶
func (x *DnsConfig) GetDnsRules() []*DnsRuleConfig
func (*DnsConfig) GetDnsServers ¶
func (x *DnsConfig) GetDnsServers() []*DnsServerConfig
func (*DnsConfig) GetEnableFakeDns ¶
func (*DnsConfig) GetRecords ¶
func (*DnsConfig) ProtoMessage ¶
func (*DnsConfig) ProtoMessage()
func (*DnsConfig) ProtoReflect ¶
func (x *DnsConfig) ProtoReflect() protoreflect.Message
type DnsHijackConfig ¶
type DnsHijackConfig struct {
// dns handler name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// dns servers to use for direct dns queries
DirectAddresses []string `protobuf:"bytes,2,rep,name=direct_addresses,json=directAddresses,proto3" json:"direct_addresses,omitempty"`
UseDefaultDns bool `protobuf:"varint,3,opt,name=use_default_dns,json=useDefaultDns,proto3" json:"use_default_dns,omitempty"`
ProxyAddresses []string `protobuf:"bytes,4,rep,name=proxy_addresses,json=proxyAddresses,proto3" json:"proxy_addresses,omitempty"`
// used as inbound tag for proxy dns server
DnsConnProxy string `protobuf:"bytes,5,opt,name=dns_conn_proxy,json=dnsConnProxy,proto3" json:"dns_conn_proxy,omitempty"`
DnsConnDirect string `protobuf:"bytes,6,opt,name=dns_conn_direct,json=dnsConnDirect,proto3" json:"dns_conn_direct,omitempty"`
DnsServerProxy string `protobuf:"bytes,7,opt,name=dns_server_proxy,json=dnsServerProxy,proto3" json:"dns_server_proxy,omitempty"`
// domain sets that contains all proxy domains
// all domains in the sets will be resolved by proxy dns server
ProxyTags []string `protobuf:"bytes,8,rep,name=proxy_tags,json=proxyTags,proto3" json:"proxy_tags,omitempty"`
DirectReturnNilAaaaIfNotSupport bool `` /* 165-byte string literal not displayed */
ProxyReturnNilAaaaIfNotSupport bool `` /* 163-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DnsHijackConfig) Descriptor
deprecated
func (*DnsHijackConfig) Descriptor() ([]byte, []int)
Deprecated: Use DnsHijackConfig.ProtoReflect.Descriptor instead.
func (*DnsHijackConfig) GetDirectAddresses ¶
func (x *DnsHijackConfig) GetDirectAddresses() []string
func (*DnsHijackConfig) GetDirectReturnNilAaaaIfNotSupport ¶
func (x *DnsHijackConfig) GetDirectReturnNilAaaaIfNotSupport() bool
func (*DnsHijackConfig) GetDnsConnDirect ¶
func (x *DnsHijackConfig) GetDnsConnDirect() string
func (*DnsHijackConfig) GetDnsConnProxy ¶
func (x *DnsHijackConfig) GetDnsConnProxy() string
func (*DnsHijackConfig) GetDnsServerProxy ¶
func (x *DnsHijackConfig) GetDnsServerProxy() string
func (*DnsHijackConfig) GetName ¶
func (x *DnsHijackConfig) GetName() string
func (*DnsHijackConfig) GetProxyAddresses ¶
func (x *DnsHijackConfig) GetProxyAddresses() []string
func (*DnsHijackConfig) GetProxyReturnNilAaaaIfNotSupport ¶
func (x *DnsHijackConfig) GetProxyReturnNilAaaaIfNotSupport() bool
func (*DnsHijackConfig) GetProxyTags ¶
func (x *DnsHijackConfig) GetProxyTags() []string
func (*DnsHijackConfig) GetUseDefaultDns ¶
func (x *DnsHijackConfig) GetUseDefaultDns() bool
func (*DnsHijackConfig) ProtoMessage ¶
func (*DnsHijackConfig) ProtoMessage()
func (*DnsHijackConfig) ProtoReflect ¶
func (x *DnsHijackConfig) ProtoReflect() protoreflect.Message
func (*DnsHijackConfig) Reset ¶
func (x *DnsHijackConfig) Reset()
func (*DnsHijackConfig) String ¶
func (x *DnsHijackConfig) String() string
type DnsRuleConfig ¶
type DnsRuleConfig struct {
DnsServerName string `protobuf:"bytes,1,opt,name=dns_server_name,json=dnsServerName,proto3" json:"dns_server_name,omitempty"`
// used to construct preferred domains
Domains []*geo.Domain `protobuf:"bytes,10,rep,name=domains,proto3" json:"domains,omitempty"`
// used to construct preferred domains
DomainTags []string `protobuf:"bytes,11,rep,name=domain_tags,json=domainTags,proto3" json:"domain_tags,omitempty"`
// types
IncludedTypes []DnsType `protobuf:"varint,12,rep,packed,name=included_types,json=includedTypes,proto3,enum=x.DnsType" json:"included_types,omitempty"`
// for debug and display purpose
RuleName string `protobuf:"bytes,20,opt,name=rule_name,json=ruleName,proto3" json:"rule_name,omitempty"`
// contains filtered or unexported fields
}
func (*DnsRuleConfig) Descriptor
deprecated
func (*DnsRuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use DnsRuleConfig.ProtoReflect.Descriptor instead.
func (*DnsRuleConfig) GetDnsServerName ¶
func (x *DnsRuleConfig) GetDnsServerName() string
func (*DnsRuleConfig) GetDomainTags ¶
func (x *DnsRuleConfig) GetDomainTags() []string
func (*DnsRuleConfig) GetDomains ¶
func (x *DnsRuleConfig) GetDomains() []*geo.Domain
func (*DnsRuleConfig) GetIncludedTypes ¶
func (x *DnsRuleConfig) GetIncludedTypes() []DnsType
func (*DnsRuleConfig) GetRuleName ¶
func (x *DnsRuleConfig) GetRuleName() string
func (*DnsRuleConfig) ProtoMessage ¶
func (*DnsRuleConfig) ProtoMessage()
func (*DnsRuleConfig) ProtoReflect ¶
func (x *DnsRuleConfig) ProtoReflect() protoreflect.Message
func (*DnsRuleConfig) Reset ¶
func (x *DnsRuleConfig) Reset()
func (*DnsRuleConfig) String ¶
func (x *DnsRuleConfig) String() string
type DnsRules ¶
type DnsRules struct {
Rules []*DnsRuleConfig `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*DnsRules) Descriptor
deprecated
func (*DnsRules) GetRules ¶
func (x *DnsRules) GetRules() []*DnsRuleConfig
func (*DnsRules) ProtoMessage ¶
func (*DnsRules) ProtoMessage()
func (*DnsRules) ProtoReflect ¶
func (x *DnsRules) ProtoReflect() protoreflect.Message
type DnsServerConfig ¶
type DnsServerConfig struct {
// Types that are valid to be assigned to Type:
//
// *DnsServerConfig_PlainDnsServer
// *DnsServerConfig_DohDnsServer
// *DnsServerConfig_QuicDnsServer
// *DnsServerConfig_FakeDnsServer
// *DnsServerConfig_TlsDnsServer
Type isDnsServerConfig_Type `protobuf_oneof:"type"`
Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
ClientIp string `protobuf:"bytes,11,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
// if not zero, dns responses will be cached for this duration.
// if zero, the minimum ttl of all answers will be used.
CacheDuration uint32 `protobuf:"varint,12,opt,name=cache_duration,json=cacheDuration,proto3" json:"cache_duration,omitempty"`
// contains filtered or unexported fields
}
func (*DnsServerConfig) Descriptor
deprecated
func (*DnsServerConfig) Descriptor() ([]byte, []int)
Deprecated: Use DnsServerConfig.ProtoReflect.Descriptor instead.
func (*DnsServerConfig) GetCacheDuration ¶ added in v1.0.2
func (x *DnsServerConfig) GetCacheDuration() uint32
func (*DnsServerConfig) GetClientIp ¶
func (x *DnsServerConfig) GetClientIp() string
func (*DnsServerConfig) GetDohDnsServer ¶
func (x *DnsServerConfig) GetDohDnsServer() *DohDnsServer
func (*DnsServerConfig) GetFakeDnsServer ¶
func (x *DnsServerConfig) GetFakeDnsServer() *FakeDnsServer
func (*DnsServerConfig) GetName ¶
func (x *DnsServerConfig) GetName() string
func (*DnsServerConfig) GetPlainDnsServer ¶
func (x *DnsServerConfig) GetPlainDnsServer() *PlainDnsServer
func (*DnsServerConfig) GetQuicDnsServer ¶
func (x *DnsServerConfig) GetQuicDnsServer() *QuicDnsServer
func (*DnsServerConfig) GetTlsDnsServer ¶
func (x *DnsServerConfig) GetTlsDnsServer() *TlsDnsServer
func (*DnsServerConfig) GetType ¶
func (x *DnsServerConfig) GetType() isDnsServerConfig_Type
func (*DnsServerConfig) ProtoMessage ¶
func (*DnsServerConfig) ProtoMessage()
func (*DnsServerConfig) ProtoReflect ¶
func (x *DnsServerConfig) ProtoReflect() protoreflect.Message
func (*DnsServerConfig) Reset ¶
func (x *DnsServerConfig) Reset()
func (*DnsServerConfig) String ¶
func (x *DnsServerConfig) String() string
type DnsServerConfig_DohDnsServer ¶
type DnsServerConfig_DohDnsServer struct {
DohDnsServer *DohDnsServer `protobuf:"bytes,2,opt,name=doh_dns_server,json=dohDnsServer,proto3,oneof"`
}
type DnsServerConfig_FakeDnsServer ¶
type DnsServerConfig_FakeDnsServer struct {
FakeDnsServer *FakeDnsServer `protobuf:"bytes,4,opt,name=fake_dns_server,json=fakeDnsServer,proto3,oneof"`
}
type DnsServerConfig_PlainDnsServer ¶
type DnsServerConfig_PlainDnsServer struct {
PlainDnsServer *PlainDnsServer `protobuf:"bytes,1,opt,name=plain_dns_server,json=plainDnsServer,proto3,oneof"`
}
type DnsServerConfig_QuicDnsServer ¶
type DnsServerConfig_QuicDnsServer struct {
QuicDnsServer *QuicDnsServer `protobuf:"bytes,3,opt,name=quic_dns_server,json=quicDnsServer,proto3,oneof"`
}
type DnsServerConfig_TlsDnsServer ¶
type DnsServerConfig_TlsDnsServer struct {
TlsDnsServer *TlsDnsServer `protobuf:"bytes,5,opt,name=tls_dns_server,json=tlsDnsServer,proto3,oneof"`
}
type DnsType ¶
type DnsType int32
func (DnsType) Descriptor ¶
func (DnsType) Descriptor() protoreflect.EnumDescriptor
func (DnsType) EnumDescriptor
deprecated
func (DnsType) Number ¶
func (x DnsType) Number() protoreflect.EnumNumber
func (DnsType) Type ¶
func (DnsType) Type() protoreflect.EnumType
type DohDnsServer ¶
type DohDnsServer struct {
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
func (*DohDnsServer) Descriptor
deprecated
func (*DohDnsServer) Descriptor() ([]byte, []int)
Deprecated: Use DohDnsServer.ProtoReflect.Descriptor instead.
func (*DohDnsServer) GetUrl ¶
func (x *DohDnsServer) GetUrl() string
func (*DohDnsServer) ProtoMessage ¶
func (*DohDnsServer) ProtoMessage()
func (*DohDnsServer) ProtoReflect ¶
func (x *DohDnsServer) ProtoReflect() protoreflect.Message
func (*DohDnsServer) Reset ¶
func (x *DohDnsServer) Reset()
func (*DohDnsServer) String ¶
func (x *DohDnsServer) String() string
type DomainSetConfig ¶
type DomainSetConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
func (*DomainSetConfig) Descriptor
deprecated
func (*DomainSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use DomainSetConfig.ProtoReflect.Descriptor instead.
func (*DomainSetConfig) GetName ¶
func (x *DomainSetConfig) GetName() string
func (*DomainSetConfig) GetTags ¶
func (x *DomainSetConfig) GetTags() []string
func (*DomainSetConfig) ProtoMessage ¶
func (*DomainSetConfig) ProtoMessage()
func (*DomainSetConfig) ProtoReflect ¶
func (x *DomainSetConfig) ProtoReflect() protoreflect.Message
func (*DomainSetConfig) Reset ¶
func (x *DomainSetConfig) Reset()
func (*DomainSetConfig) String ¶
func (x *DomainSetConfig) String() string
type DomainStrategy ¶
type DomainStrategy int32
const ( DomainStrategy_PreferIPv4 DomainStrategy = 0 DomainStrategy_PreferIPv6 DomainStrategy = 1 DomainStrategy_IPv4Only DomainStrategy = 2 DomainStrategy_IPv6Only DomainStrategy = 43 )
func (DomainStrategy) Descriptor ¶
func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor
func (DomainStrategy) Enum ¶
func (x DomainStrategy) Enum() *DomainStrategy
func (DomainStrategy) EnumDescriptor
deprecated
func (DomainStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use DomainStrategy.Descriptor instead.
func (DomainStrategy) Number ¶
func (x DomainStrategy) Number() protoreflect.EnumNumber
func (DomainStrategy) String ¶
func (x DomainStrategy) String() string
func (DomainStrategy) Type ¶
func (DomainStrategy) Type() protoreflect.EnumType
type FakeDnsServer ¶
type FakeDnsServer struct {
PoolConfigs []*FakeDnsServer_PoolConfig `protobuf:"bytes,1,rep,name=pool_configs,json=poolConfigs,proto3" json:"pool_configs,omitempty"`
// contains filtered or unexported fields
}
func (*FakeDnsServer) Descriptor
deprecated
func (*FakeDnsServer) Descriptor() ([]byte, []int)
Deprecated: Use FakeDnsServer.ProtoReflect.Descriptor instead.
func (*FakeDnsServer) GetPoolConfigs ¶
func (x *FakeDnsServer) GetPoolConfigs() []*FakeDnsServer_PoolConfig
func (*FakeDnsServer) ProtoMessage ¶
func (*FakeDnsServer) ProtoMessage()
func (*FakeDnsServer) ProtoReflect ¶
func (x *FakeDnsServer) ProtoReflect() protoreflect.Message
func (*FakeDnsServer) Reset ¶
func (x *FakeDnsServer) Reset()
func (*FakeDnsServer) String ¶
func (x *FakeDnsServer) String() string
type FakeDnsServer_PoolConfig ¶
type FakeDnsServer_PoolConfig struct {
Cidr string `protobuf:"bytes,1,opt,name=cidr,proto3" json:"cidr,omitempty"`
// FakeDNS 所记忆的「IP - 域名映射」数量。当域名数量超过此数值时,会依据 LRU
// 规则淘汰老旧域名。
LruSize uint32 `protobuf:"varint,2,opt,name=lru_size,json=lruSize,proto3" json:"lru_size,omitempty"`
// contains filtered or unexported fields
}
func (*FakeDnsServer_PoolConfig) Descriptor
deprecated
func (*FakeDnsServer_PoolConfig) Descriptor() ([]byte, []int)
Deprecated: Use FakeDnsServer_PoolConfig.ProtoReflect.Descriptor instead.
func (*FakeDnsServer_PoolConfig) GetCidr ¶
func (x *FakeDnsServer_PoolConfig) GetCidr() string
func (*FakeDnsServer_PoolConfig) GetLruSize ¶
func (x *FakeDnsServer_PoolConfig) GetLruSize() uint32
func (*FakeDnsServer_PoolConfig) ProtoMessage ¶
func (*FakeDnsServer_PoolConfig) ProtoMessage()
func (*FakeDnsServer_PoolConfig) ProtoReflect ¶
func (x *FakeDnsServer_PoolConfig) ProtoReflect() protoreflect.Message
func (*FakeDnsServer_PoolConfig) Reset ¶
func (x *FakeDnsServer_PoolConfig) Reset()
func (*FakeDnsServer_PoolConfig) String ¶
func (x *FakeDnsServer_PoolConfig) String() string
type GeoConfig ¶
type GeoConfig struct {
DomainSets []*DomainSetConfig `protobuf:"bytes,1,rep,name=domain_sets,json=domainSets,proto3" json:"domain_sets,omitempty"`
// There should be no same name in great_domain_sets and atomic_domain_sets.
// Same for great_ip_sets and atomic_ip_sets.
GreatDomainSets []*GreatDomainSetConfig `protobuf:"bytes,3,rep,name=great_domain_sets,json=greatDomainSets,proto3" json:"great_domain_sets,omitempty"`
GreatIpSets []*GreatIPSetConfig `protobuf:"bytes,4,rep,name=great_ip_sets,json=greatIpSets,proto3" json:"great_ip_sets,omitempty"`
AtomicDomainSets []*AtomicDomainSetConfig `protobuf:"bytes,5,rep,name=atomic_domain_sets,json=atomicDomainSets,proto3" json:"atomic_domain_sets,omitempty"`
AtomicIpSets []*AtomicIPSetConfig `protobuf:"bytes,6,rep,name=atomic_ip_sets,json=atomicIpSets,proto3" json:"atomic_ip_sets,omitempty"`
AppSets []*AppSetConfig `protobuf:"bytes,7,rep,name=app_sets,json=appSets,proto3" json:"app_sets,omitempty"`
// contains filtered or unexported fields
}
func (*GeoConfig) Descriptor
deprecated
func (*GeoConfig) GetAppSets ¶
func (x *GeoConfig) GetAppSets() []*AppSetConfig
func (*GeoConfig) GetAtomicDomainSets ¶
func (x *GeoConfig) GetAtomicDomainSets() []*AtomicDomainSetConfig
func (*GeoConfig) GetAtomicIpSets ¶
func (x *GeoConfig) GetAtomicIpSets() []*AtomicIPSetConfig
func (*GeoConfig) GetDomainSets ¶
func (x *GeoConfig) GetDomainSets() []*DomainSetConfig
func (*GeoConfig) GetGreatDomainSets ¶
func (x *GeoConfig) GetGreatDomainSets() []*GreatDomainSetConfig
func (*GeoConfig) GetGreatIpSets ¶
func (x *GeoConfig) GetGreatIpSets() []*GreatIPSetConfig
func (*GeoConfig) ProtoMessage ¶
func (*GeoConfig) ProtoMessage()
func (*GeoConfig) ProtoReflect ¶
func (x *GeoConfig) ProtoReflect() protoreflect.Message
type GeoIPConfig ¶
type GeoIPConfig struct {
Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"`
Codes []string `protobuf:"bytes,2,rep,name=codes,proto3" json:"codes,omitempty"`
// contains filtered or unexported fields
}
func (*GeoIPConfig) Descriptor
deprecated
func (*GeoIPConfig) Descriptor() ([]byte, []int)
Deprecated: Use GeoIPConfig.ProtoReflect.Descriptor instead.
func (*GeoIPConfig) GetCodes ¶
func (x *GeoIPConfig) GetCodes() []string
func (*GeoIPConfig) GetFilepath ¶
func (x *GeoIPConfig) GetFilepath() string
func (*GeoIPConfig) ProtoMessage ¶
func (*GeoIPConfig) ProtoMessage()
func (*GeoIPConfig) ProtoReflect ¶
func (x *GeoIPConfig) ProtoReflect() protoreflect.Message
func (*GeoIPConfig) Reset ¶
func (x *GeoIPConfig) Reset()
func (*GeoIPConfig) String ¶
func (x *GeoIPConfig) String() string
type GeositeConfig ¶
type GeositeConfig struct {
Codes []string `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"`
Attributes []string `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
Filepath string `protobuf:"bytes,3,opt,name=filepath,proto3" json:"filepath,omitempty"`
// contains filtered or unexported fields
}
func (*GeositeConfig) Descriptor
deprecated
func (*GeositeConfig) Descriptor() ([]byte, []int)
Deprecated: Use GeositeConfig.ProtoReflect.Descriptor instead.
func (*GeositeConfig) GetAttributes ¶
func (x *GeositeConfig) GetAttributes() []string
func (*GeositeConfig) GetCodes ¶
func (x *GeositeConfig) GetCodes() []string
func (*GeositeConfig) GetFilepath ¶
func (x *GeositeConfig) GetFilepath() string
func (*GeositeConfig) ProtoMessage ¶
func (*GeositeConfig) ProtoMessage()
func (*GeositeConfig) ProtoReflect ¶
func (x *GeositeConfig) ProtoReflect() protoreflect.Message
func (*GeositeConfig) Reset ¶
func (x *GeositeConfig) Reset()
func (*GeositeConfig) String ¶
func (x *GeositeConfig) String() string
type GreatDomainSetConfig ¶
type GreatDomainSetConfig struct {
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
OppositeName string `protobuf:"bytes,4,opt,name=opposite_name,json=oppositeName,proto3" json:"opposite_name,omitempty"`
ExNames []string `protobuf:"bytes,5,rep,name=ex_names,json=exNames,proto3" json:"ex_names,omitempty"`
InNames []string `protobuf:"bytes,6,rep,name=in_names,json=inNames,proto3" json:"in_names,omitempty"`
// contains filtered or unexported fields
}
func (*GreatDomainSetConfig) Descriptor
deprecated
func (*GreatDomainSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use GreatDomainSetConfig.ProtoReflect.Descriptor instead.
func (*GreatDomainSetConfig) GetExNames ¶
func (x *GreatDomainSetConfig) GetExNames() []string
func (*GreatDomainSetConfig) GetInNames ¶
func (x *GreatDomainSetConfig) GetInNames() []string
func (*GreatDomainSetConfig) GetName ¶
func (x *GreatDomainSetConfig) GetName() string
func (*GreatDomainSetConfig) GetOppositeName ¶
func (x *GreatDomainSetConfig) GetOppositeName() string
func (*GreatDomainSetConfig) ProtoMessage ¶
func (*GreatDomainSetConfig) ProtoMessage()
func (*GreatDomainSetConfig) ProtoReflect ¶
func (x *GreatDomainSetConfig) ProtoReflect() protoreflect.Message
func (*GreatDomainSetConfig) Reset ¶
func (x *GreatDomainSetConfig) Reset()
func (*GreatDomainSetConfig) String ¶
func (x *GreatDomainSetConfig) String() string
type GreatIPSetConfig ¶
type GreatIPSetConfig struct {
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
OppositeName string `protobuf:"bytes,4,opt,name=opposite_name,json=oppositeName,proto3" json:"opposite_name,omitempty"`
ExNames []string `protobuf:"bytes,5,rep,name=ex_names,json=exNames,proto3" json:"ex_names,omitempty"`
InNames []string `protobuf:"bytes,6,rep,name=in_names,json=inNames,proto3" json:"in_names,omitempty"`
// contains filtered or unexported fields
}
func (*GreatIPSetConfig) Descriptor
deprecated
func (*GreatIPSetConfig) Descriptor() ([]byte, []int)
Deprecated: Use GreatIPSetConfig.ProtoReflect.Descriptor instead.
func (*GreatIPSetConfig) GetExNames ¶
func (x *GreatIPSetConfig) GetExNames() []string
func (*GreatIPSetConfig) GetInNames ¶
func (x *GreatIPSetConfig) GetInNames() []string
func (*GreatIPSetConfig) GetName ¶
func (x *GreatIPSetConfig) GetName() string
func (*GreatIPSetConfig) GetOppositeName ¶
func (x *GreatIPSetConfig) GetOppositeName() string
func (*GreatIPSetConfig) ProtoMessage ¶
func (*GreatIPSetConfig) ProtoMessage()
func (*GreatIPSetConfig) ProtoReflect ¶
func (x *GreatIPSetConfig) ProtoReflect() protoreflect.Message
func (*GreatIPSetConfig) Reset ¶
func (x *GreatIPSetConfig) Reset()
func (*GreatIPSetConfig) String ¶
func (x *GreatIPSetConfig) String() string
type GrpcConfig ¶
type GrpcConfig struct {
// listen address
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
ClientCert []byte `protobuf:"bytes,3,opt,name=client_cert,json=clientCert,proto3" json:"client_cert,omitempty"`
Uid int32 `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`
Gid int32 `protobuf:"varint,5,opt,name=gid,proto3" json:"gid,omitempty"`
// contains filtered or unexported fields
}
func (*GrpcConfig) Descriptor
deprecated
func (*GrpcConfig) Descriptor() ([]byte, []int)
Deprecated: Use GrpcConfig.ProtoReflect.Descriptor instead.
func (*GrpcConfig) GetAddress ¶
func (x *GrpcConfig) GetAddress() string
func (*GrpcConfig) GetClientCert ¶
func (x *GrpcConfig) GetClientCert() []byte
func (*GrpcConfig) GetGid ¶
func (x *GrpcConfig) GetGid() int32
func (*GrpcConfig) GetPort ¶
func (x *GrpcConfig) GetPort() uint32
func (*GrpcConfig) GetUid ¶
func (x *GrpcConfig) GetUid() int32
func (*GrpcConfig) ProtoMessage ¶
func (*GrpcConfig) ProtoMessage()
func (*GrpcConfig) ProtoReflect ¶
func (x *GrpcConfig) ProtoReflect() protoreflect.Message
func (*GrpcConfig) Reset ¶
func (x *GrpcConfig) Reset()
func (*GrpcConfig) String ¶
func (x *GrpcConfig) String() string
type HandlerConfig ¶
type HandlerConfig struct {
// Types that are valid to be assigned to Type:
//
// *HandlerConfig_Outbound
// *HandlerConfig_Chain
Type isHandlerConfig_Type `protobuf_oneof:"type"`
SupportIpv6 *bool `protobuf:"varint,3,opt,name=support_ipv6,json=supportIpv6,proto3,oneof" json:"support_ipv6,omitempty"`
// contains filtered or unexported fields
}
func (*HandlerConfig) Descriptor
deprecated
func (*HandlerConfig) Descriptor() ([]byte, []int)
Deprecated: Use HandlerConfig.ProtoReflect.Descriptor instead.
func (*HandlerConfig) GetChain ¶
func (x *HandlerConfig) GetChain() *ChainHandlerConfig
func (*HandlerConfig) GetOutbound ¶
func (x *HandlerConfig) GetOutbound() *OutboundHandlerConfig
func (*HandlerConfig) GetSupportIpv6 ¶
func (x *HandlerConfig) GetSupportIpv6() bool
func (*HandlerConfig) GetTag ¶
func (h *HandlerConfig) GetTag() string
func (*HandlerConfig) GetType ¶
func (x *HandlerConfig) GetType() isHandlerConfig_Type
func (*HandlerConfig) ProtoMessage ¶
func (*HandlerConfig) ProtoMessage()
func (*HandlerConfig) ProtoReflect ¶
func (x *HandlerConfig) ProtoReflect() protoreflect.Message
func (*HandlerConfig) Reset ¶
func (x *HandlerConfig) Reset()
func (*HandlerConfig) String ¶
func (x *HandlerConfig) String() string
type HandlerConfig_Chain ¶
type HandlerConfig_Chain struct {
Chain *ChainHandlerConfig `protobuf:"bytes,2,opt,name=chain,proto3,oneof"`
}
type HandlerConfig_Outbound ¶
type HandlerConfig_Outbound struct {
Outbound *OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound,proto3,oneof"`
}
type HandlerConfigs ¶
type HandlerConfigs struct {
Configs []*HandlerConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
// contains filtered or unexported fields
}
func (*HandlerConfigs) Descriptor
deprecated
func (*HandlerConfigs) Descriptor() ([]byte, []int)
Deprecated: Use HandlerConfigs.ProtoReflect.Descriptor instead.
func (*HandlerConfigs) GetConfigs ¶
func (x *HandlerConfigs) GetConfigs() []*HandlerConfig
func (*HandlerConfigs) ProtoMessage ¶
func (*HandlerConfigs) ProtoMessage()
func (*HandlerConfigs) ProtoReflect ¶
func (x *HandlerConfigs) ProtoReflect() protoreflect.Message
func (*HandlerConfigs) Reset ¶
func (x *HandlerConfigs) Reset()
func (*HandlerConfigs) String ¶
func (x *HandlerConfigs) String() string
type InboundManagerConfig ¶
type InboundManagerConfig struct {
Handlers []*ProxyInboundConfig `protobuf:"bytes,1,rep,name=handlers,proto3" json:"handlers,omitempty"`
MultiInbounds []*MultiProxyInboundConfig `protobuf:"bytes,2,rep,name=multi_inbounds,json=multiInbounds,proto3" json:"multi_inbounds,omitempty"`
// contains filtered or unexported fields
}
func (*InboundManagerConfig) Descriptor
deprecated
func (*InboundManagerConfig) Descriptor() ([]byte, []int)
Deprecated: Use InboundManagerConfig.ProtoReflect.Descriptor instead.
func (*InboundManagerConfig) GetHandlers ¶
func (x *InboundManagerConfig) GetHandlers() []*ProxyInboundConfig
func (*InboundManagerConfig) GetMultiInbounds ¶
func (x *InboundManagerConfig) GetMultiInbounds() []*MultiProxyInboundConfig
func (*InboundManagerConfig) ProtoMessage ¶
func (*InboundManagerConfig) ProtoMessage()
func (*InboundManagerConfig) ProtoReflect ¶
func (x *InboundManagerConfig) ProtoReflect() protoreflect.Message
func (*InboundManagerConfig) Reset ¶
func (x *InboundManagerConfig) Reset()
func (*InboundManagerConfig) String ¶
func (x *InboundManagerConfig) String() string
type Level ¶
type Level int32
func (Level) Descriptor ¶
func (Level) Descriptor() protoreflect.EnumDescriptor
func (Level) EnumDescriptor
deprecated
func (Level) Number ¶
func (x Level) Number() protoreflect.EnumNumber
func (Level) Type ¶
func (Level) Type() protoreflect.EnumType
type LoggerConfig ¶
type LoggerConfig struct {
LogLevel Level `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3,enum=x.Level" json:"log_level,omitempty"`
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
// whether use console writer for stderr output
ConsoleWriter bool `protobuf:"varint,3,opt,name=console_writer,json=consoleWriter,proto3" json:"console_writer,omitempty"`
ShowColor bool `protobuf:"varint,4,opt,name=show_color,json=showColor,proto3" json:"show_color,omitempty"`
ShowCaller bool `protobuf:"varint,5,opt,name=show_caller,json=showCaller,proto3" json:"show_caller,omitempty"`
LogFileDir string `protobuf:"bytes,9,opt,name=log_file_dir,json=logFileDir,proto3" json:"log_file_dir,omitempty"`
Redact bool `protobuf:"varint,10,opt,name=redact,proto3" json:"redact,omitempty"`
UserLog bool `protobuf:"varint,6,opt,name=user_log,json=userLog,proto3" json:"user_log,omitempty"`
LogAppId bool `protobuf:"varint,7,opt,name=log_app_id,json=logAppId,proto3" json:"log_app_id,omitempty"`
// contains filtered or unexported fields
}
func (*LoggerConfig) Descriptor
deprecated
func (*LoggerConfig) Descriptor() ([]byte, []int)
Deprecated: Use LoggerConfig.ProtoReflect.Descriptor instead.
func (*LoggerConfig) GetConsoleWriter ¶
func (x *LoggerConfig) GetConsoleWriter() bool
func (*LoggerConfig) GetFilePath ¶
func (x *LoggerConfig) GetFilePath() string
func (*LoggerConfig) GetLogAppId ¶
func (x *LoggerConfig) GetLogAppId() bool
func (*LoggerConfig) GetLogFileDir ¶
func (x *LoggerConfig) GetLogFileDir() string
func (*LoggerConfig) GetLogLevel ¶
func (x *LoggerConfig) GetLogLevel() Level
func (*LoggerConfig) GetRedact ¶
func (x *LoggerConfig) GetRedact() bool
func (*LoggerConfig) GetShowCaller ¶
func (x *LoggerConfig) GetShowCaller() bool
func (*LoggerConfig) GetShowColor ¶
func (x *LoggerConfig) GetShowColor() bool
func (*LoggerConfig) GetUserLog ¶
func (x *LoggerConfig) GetUserLog() bool
func (*LoggerConfig) ProtoMessage ¶
func (*LoggerConfig) ProtoMessage()
func (*LoggerConfig) ProtoReflect ¶
func (x *LoggerConfig) ProtoReflect() protoreflect.Message
func (*LoggerConfig) Reset ¶
func (x *LoggerConfig) Reset()
func (*LoggerConfig) String ¶
func (x *LoggerConfig) String() string
type Mode ¶
type Mode int32
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
type MultiProxyInboundConfig ¶
type MultiProxyInboundConfig struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
Ports []uint32 `protobuf:"varint,3,rep,packed,name=ports,proto3" json:"ports,omitempty"`
Protocols []*anypb.Any `protobuf:"bytes,4,rep,name=protocols,proto3" json:"protocols,omitempty"`
SecurityConfigs []*MultiProxyInboundConfig_Security `protobuf:"bytes,5,rep,name=security_configs,json=securityConfigs,proto3" json:"security_configs,omitempty"`
TransportProtocols []*MultiProxyInboundConfig_Protocol `protobuf:"bytes,6,rep,name=transport_protocols,json=transportProtocols,proto3" json:"transport_protocols,omitempty"`
Socket *SocketConfig `protobuf:"bytes,8,opt,name=socket,proto3" json:"socket,omitempty"`
Users []*UserConfig `protobuf:"bytes,9,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*MultiProxyInboundConfig) Descriptor
deprecated
func (*MultiProxyInboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use MultiProxyInboundConfig.ProtoReflect.Descriptor instead.
func (*MultiProxyInboundConfig) GetAddress ¶
func (x *MultiProxyInboundConfig) GetAddress() string
func (*MultiProxyInboundConfig) GetPorts ¶
func (x *MultiProxyInboundConfig) GetPorts() []uint32
func (*MultiProxyInboundConfig) GetProtocols ¶
func (x *MultiProxyInboundConfig) GetProtocols() []*anypb.Any
func (*MultiProxyInboundConfig) GetSecurityConfigs ¶
func (x *MultiProxyInboundConfig) GetSecurityConfigs() []*MultiProxyInboundConfig_Security
func (*MultiProxyInboundConfig) GetSocket ¶
func (x *MultiProxyInboundConfig) GetSocket() *SocketConfig
func (*MultiProxyInboundConfig) GetTag ¶
func (x *MultiProxyInboundConfig) GetTag() string
func (*MultiProxyInboundConfig) GetTransportProtocols ¶
func (x *MultiProxyInboundConfig) GetTransportProtocols() []*MultiProxyInboundConfig_Protocol
func (*MultiProxyInboundConfig) GetUsers ¶
func (x *MultiProxyInboundConfig) GetUsers() []*UserConfig
func (*MultiProxyInboundConfig) ProtoMessage ¶
func (*MultiProxyInboundConfig) ProtoMessage()
func (*MultiProxyInboundConfig) ProtoReflect ¶
func (x *MultiProxyInboundConfig) ProtoReflect() protoreflect.Message
func (*MultiProxyInboundConfig) Reset ¶
func (x *MultiProxyInboundConfig) Reset()
func (*MultiProxyInboundConfig) String ¶
func (x *MultiProxyInboundConfig) String() string
type MultiProxyInboundConfig_Protocol ¶
type MultiProxyInboundConfig_Protocol struct {
// Types that are valid to be assigned to Protocol:
//
// *MultiProxyInboundConfig_Protocol_Websocket
// *MultiProxyInboundConfig_Protocol_Http
// *MultiProxyInboundConfig_Protocol_Grpc
// *MultiProxyInboundConfig_Protocol_Httpupgrade
// *MultiProxyInboundConfig_Protocol_Splithttp
// *MultiProxyInboundConfig_Protocol_Tcp
Protocol isMultiProxyInboundConfig_Protocol_Protocol `protobuf_oneof:"protocol"`
Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"`
Sni string `protobuf:"bytes,2,opt,name=sni,proto3" json:"sni,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
H2 bool `protobuf:"varint,4,opt,name=h2,proto3" json:"h2,omitempty"`
Always bool `protobuf:"varint,5,opt,name=always,proto3" json:"always,omitempty"`
// contains filtered or unexported fields
}
func (*MultiProxyInboundConfig_Protocol) Descriptor
deprecated
func (*MultiProxyInboundConfig_Protocol) Descriptor() ([]byte, []int)
Deprecated: Use MultiProxyInboundConfig_Protocol.ProtoReflect.Descriptor instead.
func (*MultiProxyInboundConfig_Protocol) GetAlpn ¶
func (x *MultiProxyInboundConfig_Protocol) GetAlpn() string
func (*MultiProxyInboundConfig_Protocol) GetAlways ¶
func (x *MultiProxyInboundConfig_Protocol) GetAlways() bool
func (*MultiProxyInboundConfig_Protocol) GetGrpc ¶
func (x *MultiProxyInboundConfig_Protocol) GetGrpc() *grpc.GrpcConfig
func (*MultiProxyInboundConfig_Protocol) GetH2 ¶
func (x *MultiProxyInboundConfig_Protocol) GetH2() bool
func (*MultiProxyInboundConfig_Protocol) GetHttp ¶
func (x *MultiProxyInboundConfig_Protocol) GetHttp() *http.HttpConfig
func (*MultiProxyInboundConfig_Protocol) GetHttpupgrade ¶
func (x *MultiProxyInboundConfig_Protocol) GetHttpupgrade() *httpupgrade.HttpUpgradeConfig
func (*MultiProxyInboundConfig_Protocol) GetPath ¶
func (x *MultiProxyInboundConfig_Protocol) GetPath() string
func (*MultiProxyInboundConfig_Protocol) GetProtocol ¶
func (x *MultiProxyInboundConfig_Protocol) GetProtocol() isMultiProxyInboundConfig_Protocol_Protocol
func (*MultiProxyInboundConfig_Protocol) GetSni ¶
func (x *MultiProxyInboundConfig_Protocol) GetSni() string
func (*MultiProxyInboundConfig_Protocol) GetSplithttp ¶
func (x *MultiProxyInboundConfig_Protocol) GetSplithttp() *splithttp.SplitHttpConfig
func (*MultiProxyInboundConfig_Protocol) GetTcp ¶
func (x *MultiProxyInboundConfig_Protocol) GetTcp() *tcp.TcpConfig
func (*MultiProxyInboundConfig_Protocol) GetWebsocket ¶
func (x *MultiProxyInboundConfig_Protocol) GetWebsocket() *websocket.WebsocketConfig
func (*MultiProxyInboundConfig_Protocol) ProtoMessage ¶
func (*MultiProxyInboundConfig_Protocol) ProtoMessage()
func (*MultiProxyInboundConfig_Protocol) ProtoReflect ¶
func (x *MultiProxyInboundConfig_Protocol) ProtoReflect() protoreflect.Message
func (*MultiProxyInboundConfig_Protocol) Reset ¶
func (x *MultiProxyInboundConfig_Protocol) Reset()
func (*MultiProxyInboundConfig_Protocol) String ¶
func (x *MultiProxyInboundConfig_Protocol) String() string
type MultiProxyInboundConfig_Protocol_Grpc ¶
type MultiProxyInboundConfig_Protocol_Grpc struct {
Grpc *grpc.GrpcConfig `protobuf:"bytes,10,opt,name=grpc,proto3,oneof"`
}
type MultiProxyInboundConfig_Protocol_Http ¶
type MultiProxyInboundConfig_Protocol_Http struct {
Http *http.HttpConfig `protobuf:"bytes,8,opt,name=http,proto3,oneof"`
}
type MultiProxyInboundConfig_Protocol_Httpupgrade ¶
type MultiProxyInboundConfig_Protocol_Httpupgrade struct {
Httpupgrade *httpupgrade.HttpUpgradeConfig `protobuf:"bytes,11,opt,name=httpupgrade,proto3,oneof"`
}
type MultiProxyInboundConfig_Protocol_Splithttp ¶
type MultiProxyInboundConfig_Protocol_Splithttp struct {
Splithttp *splithttp.SplitHttpConfig `protobuf:"bytes,12,opt,name=splithttp,proto3,oneof"`
}
type MultiProxyInboundConfig_Protocol_Websocket ¶
type MultiProxyInboundConfig_Protocol_Websocket struct {
Websocket *websocket.WebsocketConfig `protobuf:"bytes,7,opt,name=websocket,proto3,oneof"`
}
type MultiProxyInboundConfig_Security ¶
type MultiProxyInboundConfig_Security struct {
// Types that are valid to be assigned to Security:
//
// *MultiProxyInboundConfig_Security_Tls
// *MultiProxyInboundConfig_Security_Reality
Security isMultiProxyInboundConfig_Security_Security `protobuf_oneof:"security"`
Domains []string `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"`
RegularExpression string `protobuf:"bytes,2,opt,name=regular_expression,json=regularExpression,proto3" json:"regular_expression,omitempty"`
Always bool `protobuf:"varint,3,opt,name=always,proto3" json:"always,omitempty"`
// contains filtered or unexported fields
}
func (*MultiProxyInboundConfig_Security) Descriptor
deprecated
func (*MultiProxyInboundConfig_Security) Descriptor() ([]byte, []int)
Deprecated: Use MultiProxyInboundConfig_Security.ProtoReflect.Descriptor instead.
func (*MultiProxyInboundConfig_Security) GetAlways ¶
func (x *MultiProxyInboundConfig_Security) GetAlways() bool
func (*MultiProxyInboundConfig_Security) GetDomains ¶
func (x *MultiProxyInboundConfig_Security) GetDomains() []string
func (*MultiProxyInboundConfig_Security) GetReality ¶
func (x *MultiProxyInboundConfig_Security) GetReality() *reality.RealityConfig
func (*MultiProxyInboundConfig_Security) GetRegularExpression ¶
func (x *MultiProxyInboundConfig_Security) GetRegularExpression() string
func (*MultiProxyInboundConfig_Security) GetSecurity ¶
func (x *MultiProxyInboundConfig_Security) GetSecurity() isMultiProxyInboundConfig_Security_Security
func (*MultiProxyInboundConfig_Security) GetTls ¶
func (x *MultiProxyInboundConfig_Security) GetTls() *tls.TlsConfig
func (*MultiProxyInboundConfig_Security) ProtoMessage ¶
func (*MultiProxyInboundConfig_Security) ProtoMessage()
func (*MultiProxyInboundConfig_Security) ProtoReflect ¶
func (x *MultiProxyInboundConfig_Security) ProtoReflect() protoreflect.Message
func (*MultiProxyInboundConfig_Security) Reset ¶
func (x *MultiProxyInboundConfig_Security) Reset()
func (*MultiProxyInboundConfig_Security) String ¶
func (x *MultiProxyInboundConfig_Security) String() string
type MultiProxyInboundConfig_Security_Reality ¶
type MultiProxyInboundConfig_Security_Reality struct {
Reality *reality.RealityConfig `protobuf:"bytes,21,opt,name=reality,proto3,oneof"`
}
type MuxConfig ¶
type MuxConfig struct {
MaxConnection uint32 `protobuf:"varint,1,opt,name=max_connection,json=maxConnection,proto3" json:"max_connection,omitempty"`
MaxConcurrency uint32 `protobuf:"varint,2,opt,name=max_concurrency,json=maxConcurrency,proto3" json:"max_concurrency,omitempty"`
// contains filtered or unexported fields
}
func (*MuxConfig) Descriptor
deprecated
func (*MuxConfig) GetMaxConcurrency ¶
func (*MuxConfig) GetMaxConnection ¶
func (*MuxConfig) ProtoMessage ¶
func (*MuxConfig) ProtoMessage()
func (*MuxConfig) ProtoReflect ¶
func (x *MuxConfig) ProtoReflect() protoreflect.Message
type OutboundConfig ¶
type OutboundConfig struct {
// @deprecated
OutboundHandlers []*OutboundHandlerConfig `protobuf:"bytes,1,rep,name=outbound_handlers,json=outboundHandlers,proto3" json:"outbound_handlers,omitempty"`
// @deprecated
ChainHandlers []*ChainHandlerConfig `protobuf:"bytes,2,rep,name=chain_handlers,json=chainHandlers,proto3" json:"chain_handlers,omitempty"`
Handlers []*HandlerConfig `protobuf:"bytes,3,rep,name=handlers,proto3" json:"handlers,omitempty"`
// contains filtered or unexported fields
}
func (*OutboundConfig) Descriptor
deprecated
func (*OutboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutboundConfig.ProtoReflect.Descriptor instead.
func (*OutboundConfig) GetChainHandlers ¶
func (x *OutboundConfig) GetChainHandlers() []*ChainHandlerConfig
func (*OutboundConfig) GetHandlers ¶
func (x *OutboundConfig) GetHandlers() []*HandlerConfig
func (*OutboundConfig) GetOutboundHandlers ¶
func (x *OutboundConfig) GetOutboundHandlers() []*OutboundHandlerConfig
func (*OutboundConfig) ProtoMessage ¶
func (*OutboundConfig) ProtoMessage()
func (*OutboundConfig) ProtoReflect ¶
func (x *OutboundConfig) ProtoReflect() protoreflect.Message
func (*OutboundConfig) Reset ¶
func (x *OutboundConfig) Reset()
func (*OutboundConfig) String ¶
func (x *OutboundConfig) String() string
type OutboundHandlerConfig ¶
type OutboundHandlerConfig struct {
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
Transport *TransportConfig `protobuf:"bytes,3,opt,name=transport,proto3" json:"transport,omitempty"`
EnableMux bool `protobuf:"varint,4,opt,name=enable_mux,json=enableMux,proto3" json:"enable_mux,omitempty"`
MuxConfig *MuxConfig `protobuf:"bytes,12,opt,name=mux_config,json=muxConfig,proto3" json:"mux_config,omitempty"`
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
Ports []*net.PortRange `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"`
Protocol *anypb.Any `protobuf:"bytes,8,opt,name=protocol,proto3" json:"protocol,omitempty"`
Uot bool `protobuf:"varint,9,opt,name=uot,proto3" json:"uot,omitempty"`
DomainStrategy DomainStrategy `` // bool pre_connect = 11;
/* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*OutboundHandlerConfig) Descriptor
deprecated
func (*OutboundHandlerConfig) Descriptor() ([]byte, []int)
Deprecated: Use OutboundHandlerConfig.ProtoReflect.Descriptor instead.
func (*OutboundHandlerConfig) GetAddress ¶
func (x *OutboundHandlerConfig) GetAddress() string
func (*OutboundHandlerConfig) GetDomainStrategy ¶
func (x *OutboundHandlerConfig) GetDomainStrategy() DomainStrategy
func (*OutboundHandlerConfig) GetEnableMux ¶
func (x *OutboundHandlerConfig) GetEnableMux() bool
func (*OutboundHandlerConfig) GetMuxConfig ¶
func (x *OutboundHandlerConfig) GetMuxConfig() *MuxConfig
func (*OutboundHandlerConfig) GetPort ¶
func (x *OutboundHandlerConfig) GetPort() uint32
func (*OutboundHandlerConfig) GetPorts ¶
func (x *OutboundHandlerConfig) GetPorts() []*net.PortRange
func (*OutboundHandlerConfig) GetProtocol ¶
func (x *OutboundHandlerConfig) GetProtocol() *anypb.Any
func (*OutboundHandlerConfig) GetTag ¶
func (x *OutboundHandlerConfig) GetTag() string
func (*OutboundHandlerConfig) GetTransport ¶
func (x *OutboundHandlerConfig) GetTransport() *TransportConfig
func (*OutboundHandlerConfig) GetUot ¶
func (x *OutboundHandlerConfig) GetUot() bool
func (*OutboundHandlerConfig) ProtoMessage ¶
func (*OutboundHandlerConfig) ProtoMessage()
func (*OutboundHandlerConfig) ProtoReflect ¶
func (x *OutboundHandlerConfig) ProtoReflect() protoreflect.Message
func (*OutboundHandlerConfig) Reset ¶
func (x *OutboundHandlerConfig) Reset()
func (*OutboundHandlerConfig) String ¶
func (x *OutboundHandlerConfig) String() string
type PlainDnsServer ¶
type PlainDnsServer struct {
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
UseDefaultDns bool `protobuf:"varint,3,opt,name=use_default_dns,json=useDefaultDns,proto3" json:"use_default_dns,omitempty"`
// contains filtered or unexported fields
}
func (*PlainDnsServer) Descriptor
deprecated
func (*PlainDnsServer) Descriptor() ([]byte, []int)
Deprecated: Use PlainDnsServer.ProtoReflect.Descriptor instead.
func (*PlainDnsServer) GetAddresses ¶
func (x *PlainDnsServer) GetAddresses() []string
func (*PlainDnsServer) GetUseDefaultDns ¶
func (x *PlainDnsServer) GetUseDefaultDns() bool
func (*PlainDnsServer) ProtoMessage ¶
func (*PlainDnsServer) ProtoMessage()
func (*PlainDnsServer) ProtoReflect ¶
func (x *PlainDnsServer) ProtoReflect() protoreflect.Message
func (*PlainDnsServer) Reset ¶
func (x *PlainDnsServer) Reset()
func (*PlainDnsServer) String ¶
func (x *PlainDnsServer) String() string
type PolicyConfig ¶
type PolicyConfig struct {
UserPolicyMap map[uint32]*UserPolicy `` /* 178-byte string literal not displayed */
HandshakeTimeout uint32 `protobuf:"varint,1,opt,name=handshake_timeout,json=handshakeTimeout,proto3" json:"handshake_timeout,omitempty"`
// tcp
ConnectionIdleTimeout uint32 `` /* 127-byte string literal not displayed */
UpLinkOnlyTimeout uint32 `protobuf:"varint,4,opt,name=upLink_only_timeout,json=upLinkOnlyTimeout,proto3" json:"upLink_only_timeout,omitempty"`
DownLinkOnlyTimeout uint32 `protobuf:"varint,5,opt,name=downLink_only_timeout,json=downLinkOnlyTimeout,proto3" json:"downLink_only_timeout,omitempty"`
// udp
UdpIdleTimeout uint32 `protobuf:"varint,3,opt,name=udp_idle_timeout,json=udpIdleTimeout,proto3" json:"udp_idle_timeout,omitempty"`
// inbound link stats
LinkStats bool `protobuf:"varint,7,opt,name=link_stats,json=linkStats,proto3" json:"link_stats,omitempty"`
// inbound stats
InboundStats bool `protobuf:"varint,8,opt,name=inbound_stats,json=inboundStats,proto3" json:"inbound_stats,omitempty"`
UserStats bool `protobuf:"varint,9,opt,name=user_stats,json=userStats,proto3" json:"user_stats,omitempty"`
OutboundStats bool `protobuf:"varint,10,opt,name=outbound_stats,json=outboundStats,proto3" json:"outbound_stats,omitempty"`
// for debug purpose
SessionStats bool `protobuf:"varint,13,opt,name=session_stats,json=sessionStats,proto3" json:"session_stats,omitempty"`
DefaultBufferSize int32 `protobuf:"varint,12,opt,name=default_buffer_size,json=defaultBufferSize,proto3" json:"default_buffer_size,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyConfig) Descriptor
deprecated
func (*PolicyConfig) Descriptor() ([]byte, []int)
Deprecated: Use PolicyConfig.ProtoReflect.Descriptor instead.
func (*PolicyConfig) GetConnectionIdleTimeout ¶
func (x *PolicyConfig) GetConnectionIdleTimeout() uint32
func (*PolicyConfig) GetDefaultBufferSize ¶
func (x *PolicyConfig) GetDefaultBufferSize() int32
func (*PolicyConfig) GetDownLinkOnlyTimeout ¶
func (x *PolicyConfig) GetDownLinkOnlyTimeout() uint32
func (*PolicyConfig) GetHandshakeTimeout ¶
func (x *PolicyConfig) GetHandshakeTimeout() uint32
func (*PolicyConfig) GetInboundStats ¶
func (x *PolicyConfig) GetInboundStats() bool
func (*PolicyConfig) GetLinkStats ¶
func (x *PolicyConfig) GetLinkStats() bool
func (*PolicyConfig) GetOutboundStats ¶
func (x *PolicyConfig) GetOutboundStats() bool
func (*PolicyConfig) GetSessionStats ¶
func (x *PolicyConfig) GetSessionStats() bool
func (*PolicyConfig) GetUdpIdleTimeout ¶
func (x *PolicyConfig) GetUdpIdleTimeout() uint32
func (*PolicyConfig) GetUpLinkOnlyTimeout ¶
func (x *PolicyConfig) GetUpLinkOnlyTimeout() uint32
func (*PolicyConfig) GetUserPolicyMap ¶
func (x *PolicyConfig) GetUserPolicyMap() map[uint32]*UserPolicy
func (*PolicyConfig) GetUserStats ¶
func (x *PolicyConfig) GetUserStats() bool
func (*PolicyConfig) ProtoMessage ¶
func (*PolicyConfig) ProtoMessage()
func (*PolicyConfig) ProtoReflect ¶
func (x *PolicyConfig) ProtoReflect() protoreflect.Message
func (*PolicyConfig) Reset ¶
func (x *PolicyConfig) Reset()
func (*PolicyConfig) String ¶
func (x *PolicyConfig) String() string
type ProxyInboundConfig ¶
type ProxyInboundConfig struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
// if both port and ports are null, 5 random ports will be used
Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
Ports []uint32 `protobuf:"varint,4,rep,packed,name=ports,proto3" json:"ports,omitempty"`
Transport *TransportConfig `protobuf:"bytes,6,opt,name=transport,proto3" json:"transport,omitempty"`
Protocol *anypb.Any `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"`
Protocols []*anypb.Any `protobuf:"bytes,8,rep,name=protocols,proto3" json:"protocols,omitempty"`
Users []*UserConfig `protobuf:"bytes,9,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*ProxyInboundConfig) Descriptor
deprecated
func (*ProxyInboundConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProxyInboundConfig.ProtoReflect.Descriptor instead.
func (*ProxyInboundConfig) GetAddress ¶
func (x *ProxyInboundConfig) GetAddress() string
func (*ProxyInboundConfig) GetPort ¶
func (x *ProxyInboundConfig) GetPort() uint32
func (*ProxyInboundConfig) GetPorts ¶
func (x *ProxyInboundConfig) GetPorts() []uint32
func (*ProxyInboundConfig) GetProtocol ¶
func (x *ProxyInboundConfig) GetProtocol() *anypb.Any
func (*ProxyInboundConfig) GetProtocols ¶
func (x *ProxyInboundConfig) GetProtocols() []*anypb.Any
func (*ProxyInboundConfig) GetTag ¶
func (x *ProxyInboundConfig) GetTag() string
func (*ProxyInboundConfig) GetTransport ¶
func (x *ProxyInboundConfig) GetTransport() *TransportConfig
func (*ProxyInboundConfig) GetUsers ¶
func (x *ProxyInboundConfig) GetUsers() []*UserConfig
func (*ProxyInboundConfig) ProtoMessage ¶
func (*ProxyInboundConfig) ProtoMessage()
func (*ProxyInboundConfig) ProtoReflect ¶
func (x *ProxyInboundConfig) ProtoReflect() protoreflect.Message
func (*ProxyInboundConfig) Reset ¶
func (x *ProxyInboundConfig) Reset()
func (*ProxyInboundConfig) String ¶
func (x *ProxyInboundConfig) String() string
type QuicDnsServer ¶
type QuicDnsServer struct {
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
ServerName string `protobuf:"bytes,3,opt,name=serverName,proto3" json:"serverName,omitempty"`
// contains filtered or unexported fields
}
func (*QuicDnsServer) Descriptor
deprecated
func (*QuicDnsServer) Descriptor() ([]byte, []int)
Deprecated: Use QuicDnsServer.ProtoReflect.Descriptor instead.
func (*QuicDnsServer) GetAddress ¶
func (x *QuicDnsServer) GetAddress() string
func (*QuicDnsServer) GetServerName ¶
func (x *QuicDnsServer) GetServerName() string
func (*QuicDnsServer) ProtoMessage ¶
func (*QuicDnsServer) ProtoMessage()
func (*QuicDnsServer) ProtoReflect ¶
func (x *QuicDnsServer) ProtoReflect() protoreflect.Message
func (*QuicDnsServer) Reset ¶
func (x *QuicDnsServer) Reset()
func (*QuicDnsServer) String ¶
func (x *QuicDnsServer) String() string
type Record ¶
type Record struct {
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
Ip []string `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
// ProxiedDomain indicates the mapped domain has the same IP address on this
// domain.
ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
// contains filtered or unexported fields
}
func (*Record) Descriptor
deprecated
func (*Record) GetProxiedDomain ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶
func (x *Record) ProtoReflect() protoreflect.Message
type RouterConfig ¶
type RouterConfig struct {
// defaults to As_Is
Rules []*RuleConfig `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// contains filtered or unexported fields
}
func (*RouterConfig) Descriptor
deprecated
func (*RouterConfig) Descriptor() ([]byte, []int)
Deprecated: Use RouterConfig.ProtoReflect.Descriptor instead.
func (*RouterConfig) GetRules ¶
func (x *RouterConfig) GetRules() []*RuleConfig
func (*RouterConfig) ProtoMessage ¶
func (*RouterConfig) ProtoMessage()
func (*RouterConfig) ProtoReflect ¶
func (x *RouterConfig) ProtoReflect() protoreflect.Message
func (*RouterConfig) Reset ¶
func (x *RouterConfig) Reset()
func (*RouterConfig) String ¶
func (x *RouterConfig) String() string
type RuleConfig ¶
type RuleConfig struct {
// either outbound_tag or banlancer_tag should be specified but not both
// when both are empty, it means blocks
OutboundTag string `protobuf:"bytes,1,opt,name=outbound_tag,json=outboundTag,proto3" json:"outbound_tag,omitempty"`
SelectorTag string `protobuf:"bytes,2,opt,name=selector_tag,json=selectorTag,proto3" json:"selector_tag,omitempty"`
// used to match source ip
SrcCidrs []string `protobuf:"bytes,5,rep,name=src_cidrs,json=srcCidrs,proto3" json:"src_cidrs,omitempty"`
// used to match source ip
SrcIpTags []string `protobuf:"bytes,6,rep,name=src_ip_tags,json=srcIpTags,proto3" json:"src_ip_tags,omitempty"`
// used to match dst ip
DstCidrs []string `protobuf:"bytes,8,rep,name=dst_cidrs,json=dstCidrs,proto3" json:"dst_cidrs,omitempty"`
// used to match dst ip
DstIpTags []string `protobuf:"bytes,9,rep,name=dst_ip_tags,json=dstIpTags,proto3" json:"dst_ip_tags,omitempty"`
// resolve domain to ip when ip is not available
ResolveDomain bool `protobuf:"varint,26,opt,name=resolve_domain,json=resolveDomain,proto3" json:"resolve_domain,omitempty"`
// used to match domain
GeoDomains []*geo.Domain `protobuf:"bytes,11,rep,name=geo_domains,json=geoDomains,proto3" json:"geo_domains,omitempty"`
DomainTags []string `protobuf:"bytes,13,rep,name=domain_tags,json=domainTags,proto3" json:"domain_tags,omitempty"`
// skip sniff for connectiosn use ip targets
SkipSniff bool `protobuf:"varint,27,opt,name=skip_sniff,json=skipSniff,proto3" json:"skip_sniff,omitempty"`
Usernames []string `protobuf:"bytes,14,rep,name=usernames,proto3" json:"usernames,omitempty"`
InboundTags []string `protobuf:"bytes,15,rep,name=inbound_tags,json=inboundTags,proto3" json:"inbound_tags,omitempty"`
Networks []net.Network `protobuf:"varint,16,rep,packed,name=networks,proto3,enum=x.common.net.Network" json:"networks,omitempty"`
SrcPortRanges []*net.PortRange `protobuf:"bytes,17,rep,name=src_port_ranges,json=srcPortRanges,proto3" json:"src_port_ranges,omitempty"`
DstPortRanges []*net.PortRange `protobuf:"bytes,18,rep,name=dst_port_ranges,json=dstPortRanges,proto3" json:"dst_port_ranges,omitempty"`
AppIds []*AppId `protobuf:"bytes,19,rep,name=app_ids,json=appIds,proto3" json:"app_ids,omitempty"`
Ipv6 bool `protobuf:"varint,20,opt,name=ipv6,proto3" json:"ipv6,omitempty"`
// for debugging
RuleName string `protobuf:"bytes,21,opt,name=rule_name,json=ruleName,proto3" json:"rule_name,omitempty"`
FakeIp bool `protobuf:"varint,22,opt,name=fake_ip,json=fakeIp,proto3" json:"fake_ip,omitempty"`
MatchAll bool `protobuf:"varint,23,opt,name=match_all,json=matchAll,proto3" json:"match_all,omitempty"`
AppTags []string `protobuf:"bytes,24,rep,name=app_tags,json=appTags,proto3" json:"app_tags,omitempty"`
AllTags []string `protobuf:"bytes,25,rep,name=all_tags,json=allTags,proto3" json:"all_tags,omitempty"`
Protocols []string `protobuf:"bytes,28,rep,name=protocols,proto3" json:"protocols,omitempty"`
// contains filtered or unexported fields
}
func (*RuleConfig) Descriptor
deprecated
func (*RuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use RuleConfig.ProtoReflect.Descriptor instead.
func (*RuleConfig) GetAllTags ¶
func (x *RuleConfig) GetAllTags() []string
func (*RuleConfig) GetAppIds ¶
func (x *RuleConfig) GetAppIds() []*AppId
func (*RuleConfig) GetAppTags ¶
func (x *RuleConfig) GetAppTags() []string
func (*RuleConfig) GetDomainTags ¶
func (x *RuleConfig) GetDomainTags() []string
func (*RuleConfig) GetDstCidrs ¶
func (x *RuleConfig) GetDstCidrs() []string
func (*RuleConfig) GetDstIpTags ¶
func (x *RuleConfig) GetDstIpTags() []string
func (*RuleConfig) GetDstPortRanges ¶
func (x *RuleConfig) GetDstPortRanges() []*net.PortRange
func (*RuleConfig) GetFakeIp ¶
func (x *RuleConfig) GetFakeIp() bool
func (*RuleConfig) GetGeoDomains ¶
func (x *RuleConfig) GetGeoDomains() []*geo.Domain
func (*RuleConfig) GetInboundTags ¶
func (x *RuleConfig) GetInboundTags() []string
func (*RuleConfig) GetIpv6 ¶
func (x *RuleConfig) GetIpv6() bool
func (*RuleConfig) GetMatchAll ¶
func (x *RuleConfig) GetMatchAll() bool
func (*RuleConfig) GetNetworks ¶
func (x *RuleConfig) GetNetworks() []net.Network
func (*RuleConfig) GetOutboundTag ¶
func (x *RuleConfig) GetOutboundTag() string
func (*RuleConfig) GetProtocols ¶ added in v1.0.2
func (x *RuleConfig) GetProtocols() []string
func (*RuleConfig) GetResolveDomain ¶
func (x *RuleConfig) GetResolveDomain() bool
func (*RuleConfig) GetRuleName ¶
func (x *RuleConfig) GetRuleName() string
func (*RuleConfig) GetSelectorTag ¶
func (x *RuleConfig) GetSelectorTag() string
func (*RuleConfig) GetSkipSniff ¶
func (x *RuleConfig) GetSkipSniff() bool
func (*RuleConfig) GetSrcCidrs ¶
func (x *RuleConfig) GetSrcCidrs() []string
func (*RuleConfig) GetSrcIpTags ¶
func (x *RuleConfig) GetSrcIpTags() []string
func (*RuleConfig) GetSrcPortRanges ¶
func (x *RuleConfig) GetSrcPortRanges() []*net.PortRange
func (*RuleConfig) GetUsernames ¶
func (x *RuleConfig) GetUsernames() []string
func (*RuleConfig) ProtoMessage ¶
func (*RuleConfig) ProtoMessage()
func (*RuleConfig) ProtoReflect ¶
func (x *RuleConfig) ProtoReflect() protoreflect.Message
func (*RuleConfig) Reset ¶
func (x *RuleConfig) Reset()
func (*RuleConfig) String ¶
func (x *RuleConfig) String() string
type SelectorConfig ¶
type SelectorConfig struct {
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
Filter *SelectorConfig_Filter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
Strategy SelectorConfig_SelectingStrategy `protobuf:"varint,3,opt,name=strategy,proto3,enum=x.SelectorConfig_SelectingStrategy" json:"strategy,omitempty"`
BalanceStrategy SelectorConfig_BalanceStrategy `` /* 145-byte string literal not displayed */
// if not empty, these handlers will be used as land handlers
// ids of the outbound handler
LandHandlers []int64 `protobuf:"varint,6,rep,packed,name=land_handlers,json=landHandlers,proto3" json:"land_handlers,omitempty"`
SelectFromOm bool `protobuf:"varint,7,opt,name=select_from_om,json=selectFromOm,proto3" json:"select_from_om,omitempty"`
// contains filtered or unexported fields
}
func (*SelectorConfig) Descriptor
deprecated
func (*SelectorConfig) Descriptor() ([]byte, []int)
Deprecated: Use SelectorConfig.ProtoReflect.Descriptor instead.
func (*SelectorConfig) GetBalanceStrategy ¶
func (x *SelectorConfig) GetBalanceStrategy() SelectorConfig_BalanceStrategy
func (*SelectorConfig) GetFilter ¶
func (x *SelectorConfig) GetFilter() *SelectorConfig_Filter
func (*SelectorConfig) GetLandHandlers ¶
func (x *SelectorConfig) GetLandHandlers() []int64
func (*SelectorConfig) GetSelectFromOm ¶
func (x *SelectorConfig) GetSelectFromOm() bool
func (*SelectorConfig) GetStrategy ¶
func (x *SelectorConfig) GetStrategy() SelectorConfig_SelectingStrategy
func (*SelectorConfig) GetTag ¶
func (x *SelectorConfig) GetTag() string
func (*SelectorConfig) ProtoMessage ¶
func (*SelectorConfig) ProtoMessage()
func (*SelectorConfig) ProtoReflect ¶
func (x *SelectorConfig) ProtoReflect() protoreflect.Message
func (*SelectorConfig) Reset ¶
func (x *SelectorConfig) Reset()
func (*SelectorConfig) String ¶
func (x *SelectorConfig) String() string
type SelectorConfig_BalanceStrategy ¶
type SelectorConfig_BalanceStrategy int32
if there are many handlers, how to balance them
const ( SelectorConfig_RANDOM SelectorConfig_BalanceStrategy = 0 // balance based on app first, if no app, based on root domain SelectorConfig_MEMORY SelectorConfig_BalanceStrategy = 1 )
func (SelectorConfig_BalanceStrategy) Descriptor ¶
func (SelectorConfig_BalanceStrategy) Descriptor() protoreflect.EnumDescriptor
func (SelectorConfig_BalanceStrategy) Enum ¶
func (x SelectorConfig_BalanceStrategy) Enum() *SelectorConfig_BalanceStrategy
func (SelectorConfig_BalanceStrategy) EnumDescriptor
deprecated
func (SelectorConfig_BalanceStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use SelectorConfig_BalanceStrategy.Descriptor instead.
func (SelectorConfig_BalanceStrategy) Number ¶
func (x SelectorConfig_BalanceStrategy) Number() protoreflect.EnumNumber
func (SelectorConfig_BalanceStrategy) String ¶
func (x SelectorConfig_BalanceStrategy) String() string
func (SelectorConfig_BalanceStrategy) Type ¶
func (SelectorConfig_BalanceStrategy) Type() protoreflect.EnumType
type SelectorConfig_Filter ¶
type SelectorConfig_Filter struct {
// If an outbound's tag has prefix of any of the prefixes, match!
Prefixes []string `protobuf:"bytes,1,rep,name=prefixes,proto3" json:"prefixes,omitempty"`
// A outbound handler will match if its tag is one of the tags
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
GroupTags []string `protobuf:"bytes,3,rep,name=group_tags,json=groupTags,proto3" json:"group_tags,omitempty"`
// If true, a handler will be selected if it does not match all conditions
Inverse bool `protobuf:"varint,4,opt,name=inverse,proto3" json:"inverse,omitempty"`
SubIds []int64 `protobuf:"varint,5,rep,packed,name=sub_ids,json=subIds,proto3" json:"sub_ids,omitempty"`
HandlerIds []int64 `protobuf:"varint,6,rep,packed,name=handler_ids,json=handlerIds,proto3" json:"handler_ids,omitempty"`
Selected bool `protobuf:"varint,7,opt,name=selected,proto3" json:"selected,omitempty"`
All bool `protobuf:"varint,8,opt,name=all,proto3" json:"all,omitempty"`
// contains filtered or unexported fields
}
func (*SelectorConfig_Filter) Descriptor
deprecated
func (*SelectorConfig_Filter) Descriptor() ([]byte, []int)
Deprecated: Use SelectorConfig_Filter.ProtoReflect.Descriptor instead.
func (*SelectorConfig_Filter) GetAll ¶
func (x *SelectorConfig_Filter) GetAll() bool
func (*SelectorConfig_Filter) GetGroupTags ¶
func (x *SelectorConfig_Filter) GetGroupTags() []string
func (*SelectorConfig_Filter) GetHandlerIds ¶
func (x *SelectorConfig_Filter) GetHandlerIds() []int64
func (*SelectorConfig_Filter) GetInverse ¶
func (x *SelectorConfig_Filter) GetInverse() bool
func (*SelectorConfig_Filter) GetPrefixes ¶
func (x *SelectorConfig_Filter) GetPrefixes() []string
func (*SelectorConfig_Filter) GetSelected ¶
func (x *SelectorConfig_Filter) GetSelected() bool
func (*SelectorConfig_Filter) GetSubIds ¶
func (x *SelectorConfig_Filter) GetSubIds() []int64
func (*SelectorConfig_Filter) GetTags ¶
func (x *SelectorConfig_Filter) GetTags() []string
func (*SelectorConfig_Filter) ProtoMessage ¶
func (*SelectorConfig_Filter) ProtoMessage()
func (*SelectorConfig_Filter) ProtoReflect ¶
func (x *SelectorConfig_Filter) ProtoReflect() protoreflect.Message
func (*SelectorConfig_Filter) Reset ¶
func (x *SelectorConfig_Filter) Reset()
func (*SelectorConfig_Filter) String ¶
func (x *SelectorConfig_Filter) String() string
type SelectorConfig_SelectingStrategy ¶
type SelectorConfig_SelectingStrategy int32
how to select handlers to be used
const ( SelectorConfig_ALL SelectorConfig_SelectingStrategy = 0 SelectorConfig_ALL_OK SelectorConfig_SelectingStrategy = 1 SelectorConfig_LEAST_PING SelectorConfig_SelectingStrategy = 2 SelectorConfig_MOST_THROUGHPUT SelectorConfig_SelectingStrategy = 3 // select good ones SelectorConfig_TOP_PING SelectorConfig_SelectingStrategy = 4 SelectorConfig_TOP_THROUGHPUT SelectorConfig_SelectingStrategy = 5 )
func (SelectorConfig_SelectingStrategy) Descriptor ¶
func (SelectorConfig_SelectingStrategy) Descriptor() protoreflect.EnumDescriptor
func (SelectorConfig_SelectingStrategy) Enum ¶
func (x SelectorConfig_SelectingStrategy) Enum() *SelectorConfig_SelectingStrategy
func (SelectorConfig_SelectingStrategy) EnumDescriptor
deprecated
func (SelectorConfig_SelectingStrategy) EnumDescriptor() ([]byte, []int)
Deprecated: Use SelectorConfig_SelectingStrategy.Descriptor instead.
func (SelectorConfig_SelectingStrategy) Number ¶
func (x SelectorConfig_SelectingStrategy) Number() protoreflect.EnumNumber
func (SelectorConfig_SelectingStrategy) String ¶
func (x SelectorConfig_SelectingStrategy) String() string
func (SelectorConfig_SelectingStrategy) Type ¶
func (SelectorConfig_SelectingStrategy) Type() protoreflect.EnumType
type SelectorsConfig ¶
type SelectorsConfig struct {
Selectors []*SelectorConfig `protobuf:"bytes,1,rep,name=selectors,proto3" json:"selectors,omitempty"`
// contains filtered or unexported fields
}
func (*SelectorsConfig) Descriptor
deprecated
func (*SelectorsConfig) Descriptor() ([]byte, []int)
Deprecated: Use SelectorsConfig.ProtoReflect.Descriptor instead.
func (*SelectorsConfig) GetSelectors ¶
func (x *SelectorsConfig) GetSelectors() []*SelectorConfig
func (*SelectorsConfig) ProtoMessage ¶
func (*SelectorsConfig) ProtoMessage()
func (*SelectorsConfig) ProtoReflect ¶
func (x *SelectorsConfig) ProtoReflect() protoreflect.Message
func (*SelectorsConfig) Reset ¶
func (x *SelectorsConfig) Reset()
func (*SelectorsConfig) String ¶
func (x *SelectorsConfig) String() string
type SocketConfig ¶
type SocketConfig struct {
// Mark of the connection. If non-zero, the value will be set to SO_MARK.
Mark uint32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
// TFO is the state of TFO settings.
Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=x.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"`
// TProxy is for enabling TProxy socket option.
Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=x.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
// ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
// option. This option is for UDP only.
ReceiveOriginalDestAddress bool `` /* 144-byte string literal not displayed */
// BindAddress is the address to bind to. Determines local address of the
// socket. Linux only.
BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
TcpKeepAliveInterval int32 `` /* 126-byte string literal not displayed */
TfoQueueLength uint32 `protobuf:"varint,9,opt,name=tfo_queue_length,json=tfoQueueLength,proto3" json:"tfo_queue_length,omitempty"`
TcpKeepAliveIdle int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"`
// Determines the nic device to bind to.
BindToDevice uint32 `protobuf:"varint,11,opt,name=bind_to_device,json=bindToDevice,proto3" json:"bind_to_device,omitempty"`
RxBufSize int64 `protobuf:"varint,12,opt,name=rx_buf_size,json=rxBufSize,proto3" json:"rx_buf_size,omitempty"`
TxBufSize int64 `protobuf:"varint,13,opt,name=tx_buf_size,json=txBufSize,proto3" json:"tx_buf_size,omitempty"`
ForceBufSize bool `protobuf:"varint,14,opt,name=force_buf_size,json=forceBufSize,proto3" json:"force_buf_size,omitempty"`
// For dial, local addr is the LocalAddr of the net.Dialer
// For udp packetConn, local addr is listening address
// In V2ray, this is the Via property of a outbound handler
LocalAddr4 string `protobuf:"bytes,16,opt,name=local_addr4,json=localAddr4,proto3" json:"local_addr4,omitempty"`
LocalAddr6 string `protobuf:"bytes,17,opt,name=local_addr6,json=localAddr6,proto3" json:"local_addr6,omitempty"`
DialTimeout uint32 `protobuf:"varint,18,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
// contains filtered or unexported fields
}
SocketConfig is options to be applied on network sockets.
func (*SocketConfig) Descriptor
deprecated
func (*SocketConfig) Descriptor() ([]byte, []int)
Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
func (*SocketConfig) GetAcceptProxyProtocol ¶
func (x *SocketConfig) GetAcceptProxyProtocol() bool
func (*SocketConfig) GetBindAddress ¶
func (x *SocketConfig) GetBindAddress() []byte
func (*SocketConfig) GetBindPort ¶
func (x *SocketConfig) GetBindPort() uint32
func (*SocketConfig) GetBindToDevice ¶
func (x *SocketConfig) GetBindToDevice() uint32
func (*SocketConfig) GetDialTimeout ¶
func (x *SocketConfig) GetDialTimeout() uint32
func (*SocketConfig) GetForceBufSize ¶
func (x *SocketConfig) GetForceBufSize() bool
func (*SocketConfig) GetLocalAddr4 ¶
func (x *SocketConfig) GetLocalAddr4() string
func (*SocketConfig) GetLocalAddr6 ¶
func (x *SocketConfig) GetLocalAddr6() string
func (*SocketConfig) GetMark ¶
func (x *SocketConfig) GetMark() uint32
func (*SocketConfig) GetReceiveOriginalDestAddress ¶
func (x *SocketConfig) GetReceiveOriginalDestAddress() bool
func (*SocketConfig) GetRxBufSize ¶
func (x *SocketConfig) GetRxBufSize() int64
func (*SocketConfig) GetTcpKeepAliveIdle ¶
func (x *SocketConfig) GetTcpKeepAliveIdle() int32
func (*SocketConfig) GetTcpKeepAliveInterval ¶
func (x *SocketConfig) GetTcpKeepAliveInterval() int32
func (*SocketConfig) GetTfo ¶
func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState
func (*SocketConfig) GetTfoQueueLength ¶
func (x *SocketConfig) GetTfoQueueLength() uint32
func (*SocketConfig) GetTproxy ¶
func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode
func (*SocketConfig) GetTxBufSize ¶
func (x *SocketConfig) GetTxBufSize() int64
func (*SocketConfig) ProtoMessage ¶
func (*SocketConfig) ProtoMessage()
func (*SocketConfig) ProtoReflect ¶
func (x *SocketConfig) ProtoReflect() protoreflect.Message
func (*SocketConfig) Reset ¶
func (x *SocketConfig) Reset()
func (*SocketConfig) String ¶
func (x *SocketConfig) String() string
type SocketConfig_TCPFastOpenState ¶
type SocketConfig_TCPFastOpenState int32
const ( // AsIs is to leave the current TFO state as is, unmodified. SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0 // Enable is for enabling TFO explictly. SocketConfig_Enable SocketConfig_TCPFastOpenState = 1 // Disable is for disabling TFO explictly. SocketConfig_Disable SocketConfig_TCPFastOpenState = 2 )
func (SocketConfig_TCPFastOpenState) Descriptor ¶
func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor
func (SocketConfig_TCPFastOpenState) Enum ¶
func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState
func (SocketConfig_TCPFastOpenState) EnumDescriptor
deprecated
func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int)
Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead.
func (SocketConfig_TCPFastOpenState) Number ¶
func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber
func (SocketConfig_TCPFastOpenState) String ¶
func (x SocketConfig_TCPFastOpenState) String() string
func (SocketConfig_TCPFastOpenState) Type ¶
func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType
type SocketConfig_TProxyMode ¶
type SocketConfig_TProxyMode int32
const ( // TProxy is off. SocketConfig_Off SocketConfig_TProxyMode = 0 // TProxy mode. SocketConfig_TProxy SocketConfig_TProxyMode = 1 // Redirect mode. SocketConfig_Redirect SocketConfig_TProxyMode = 2 )
func (SocketConfig_TProxyMode) Descriptor ¶
func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor
func (SocketConfig_TProxyMode) Enum ¶
func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode
func (SocketConfig_TProxyMode) EnumDescriptor
deprecated
func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.
func (SocketConfig_TProxyMode) Number ¶
func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber
func (SocketConfig_TProxyMode) String ¶
func (x SocketConfig_TProxyMode) String() string
func (SocketConfig_TProxyMode) Type ¶
func (SocketConfig_TProxyMode) Type() protoreflect.EnumType
type SubscriptionConfig ¶
type SubscriptionConfig struct {
LastUpdateTime uint32 `protobuf:"varint,21,opt,name=last_update_time,json=lastUpdateTime,proto3" json:"last_update_time,omitempty"`
Interval uint32 `protobuf:"varint,22,opt,name=interval,proto3" json:"interval,omitempty"`
PeriodicUpdate bool `protobuf:"varint,23,opt,name=periodic_update,json=periodicUpdate,proto3" json:"periodic_update,omitempty"`
// contains filtered or unexported fields
}
func (*SubscriptionConfig) Descriptor
deprecated
func (*SubscriptionConfig) Descriptor() ([]byte, []int)
Deprecated: Use SubscriptionConfig.ProtoReflect.Descriptor instead.
func (*SubscriptionConfig) GetInterval ¶
func (x *SubscriptionConfig) GetInterval() uint32
func (*SubscriptionConfig) GetLastUpdateTime ¶
func (x *SubscriptionConfig) GetLastUpdateTime() uint32
func (*SubscriptionConfig) GetPeriodicUpdate ¶
func (x *SubscriptionConfig) GetPeriodicUpdate() bool
func (*SubscriptionConfig) ProtoMessage ¶
func (*SubscriptionConfig) ProtoMessage()
func (*SubscriptionConfig) ProtoReflect ¶
func (x *SubscriptionConfig) ProtoReflect() protoreflect.Message
func (*SubscriptionConfig) Reset ¶
func (x *SubscriptionConfig) Reset()
func (*SubscriptionConfig) String ¶
func (x *SubscriptionConfig) String() string
type SysProxyConfig ¶
type SysProxyConfig struct {
HttpProxyAddress string `protobuf:"bytes,1,opt,name=http_proxy_address,json=httpProxyAddress,proto3" json:"http_proxy_address,omitempty"`
HttpProxyPort uint32 `protobuf:"varint,2,opt,name=http_proxy_port,json=httpProxyPort,proto3" json:"http_proxy_port,omitempty"`
HttpsProxyAddress string `protobuf:"bytes,3,opt,name=https_proxy_address,json=httpsProxyAddress,proto3" json:"https_proxy_address,omitempty"`
HttpsProxyPort uint32 `protobuf:"varint,4,opt,name=https_proxy_port,json=httpsProxyPort,proto3" json:"https_proxy_port,omitempty"`
SocksProxyAddress string `protobuf:"bytes,5,opt,name=socks_proxy_address,json=socksProxyAddress,proto3" json:"socks_proxy_address,omitempty"`
SocksProxyPort uint32 `protobuf:"varint,6,opt,name=socks_proxy_port,json=socksProxyPort,proto3" json:"socks_proxy_port,omitempty"`
// contains filtered or unexported fields
}
func (*SysProxyConfig) Descriptor
deprecated
func (*SysProxyConfig) Descriptor() ([]byte, []int)
Deprecated: Use SysProxyConfig.ProtoReflect.Descriptor instead.
func (*SysProxyConfig) GetHttpProxyAddress ¶
func (x *SysProxyConfig) GetHttpProxyAddress() string
func (*SysProxyConfig) GetHttpProxyPort ¶
func (x *SysProxyConfig) GetHttpProxyPort() uint32
func (*SysProxyConfig) GetHttpsProxyAddress ¶
func (x *SysProxyConfig) GetHttpsProxyAddress() string
func (*SysProxyConfig) GetHttpsProxyPort ¶
func (x *SysProxyConfig) GetHttpsProxyPort() uint32
func (*SysProxyConfig) GetSocksProxyAddress ¶
func (x *SysProxyConfig) GetSocksProxyAddress() string
func (*SysProxyConfig) GetSocksProxyPort ¶
func (x *SysProxyConfig) GetSocksProxyPort() uint32
func (*SysProxyConfig) ProtoMessage ¶
func (*SysProxyConfig) ProtoMessage()
func (*SysProxyConfig) ProtoReflect ¶
func (x *SysProxyConfig) ProtoReflect() protoreflect.Message
func (*SysProxyConfig) Reset ¶
func (x *SysProxyConfig) Reset()
func (*SysProxyConfig) String ¶
func (x *SysProxyConfig) String() string
type TlsDnsServer ¶
type TlsDnsServer struct {
Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
// contains filtered or unexported fields
}
func (*TlsDnsServer) Descriptor
deprecated
func (*TlsDnsServer) Descriptor() ([]byte, []int)
Deprecated: Use TlsDnsServer.ProtoReflect.Descriptor instead.
func (*TlsDnsServer) GetAddresses ¶
func (x *TlsDnsServer) GetAddresses() []string
func (*TlsDnsServer) ProtoMessage ¶
func (*TlsDnsServer) ProtoMessage()
func (*TlsDnsServer) ProtoReflect ¶
func (x *TlsDnsServer) ProtoReflect() protoreflect.Message
func (*TlsDnsServer) Reset ¶
func (x *TlsDnsServer) Reset()
func (*TlsDnsServer) String ¶
func (x *TlsDnsServer) String() string
type TmConfig ¶
type TmConfig struct {
InboundManager *InboundManagerConfig `protobuf:"bytes,1,opt,name=inbound_manager,json=inboundManager,proto3" json:"inbound_manager,omitempty"`
Dns *DnsConfig `protobuf:"bytes,3,opt,name=dns,proto3" json:"dns,omitempty"`
Policy *PolicyConfig `protobuf:"bytes,4,opt,name=policy,proto3" json:"policy,omitempty"`
Selectors *SelectorsConfig `protobuf:"bytes,5,opt,name=selectors,proto3" json:"selectors,omitempty"`
Router *RouterConfig `protobuf:"bytes,6,opt,name=router,proto3" json:"router,omitempty"`
Log *LoggerConfig `protobuf:"bytes,7,opt,name=log,proto3" json:"log,omitempty"`
Dispatcher *DispatcherConfig `protobuf:"bytes,8,opt,name=dispatcher,proto3" json:"dispatcher,omitempty"`
Geo *GeoConfig `protobuf:"bytes,13,opt,name=geo,proto3" json:"geo,omitempty"`
Grpc *GrpcConfig `protobuf:"bytes,15,opt,name=grpc,proto3" json:"grpc,omitempty"`
Tun *TunConfig `protobuf:"bytes,17,opt,name=tun,proto3" json:"tun,omitempty"`
SysProxy *SysProxyConfig `protobuf:"bytes,18,opt,name=sys_proxy,json=sysProxy,proto3" json:"sys_proxy,omitempty"`
DbPath string `protobuf:"bytes,19,opt,name=db_path,json=dbPath,proto3" json:"db_path,omitempty"`
// used by system extension to communicate with its containing app
ServiceSecret string `protobuf:"bytes,22,opt,name=service_secret,json=serviceSecret,proto3" json:"service_secret,omitempty"`
ServicePort uint32 `protobuf:"varint,23,opt,name=service_port,json=servicePort,proto3" json:"service_port,omitempty"`
// if true, a component for monitoring default nic will be added
DefaultNicMonitor bool `protobuf:"varint,20,opt,name=default_nic_monitor,json=defaultNicMonitor,proto3" json:"default_nic_monitor,omitempty"`
// subscription
Subscription *SubscriptionConfig `protobuf:"bytes,21,opt,name=subscription,proto3" json:"subscription,omitempty"`
Hysteria2RejectQuic bool `protobuf:"varint,24,opt,name=hysteria2_reject_quic,json=hysteria2RejectQuic,proto3" json:"hysteria2_reject_quic,omitempty"`
// outbound
Outbound *OutboundConfig `protobuf:"bytes,30,opt,name=outbound,proto3" json:"outbound,omitempty"`
RedirectStdErr string `protobuf:"bytes,31,opt,name=redirect_std_err,json=redirectStdErr,proto3" json:"redirect_std_err,omitempty"`
// based on dst, src, network, if there is no handler matched or the
// matched handler does not support ipv6, reject the request
RejectIpv6 bool `protobuf:"varint,32,opt,name=reject_ipv6,json=rejectIpv6,proto3" json:"reject_ipv6,omitempty"`
Wfp *WfpConfig `protobuf:"bytes,33,opt,name=wfp,proto3" json:"wfp,omitempty"`
UseRealLatency bool `protobuf:"varint,34,opt,name=use_real_latency,json=useRealLatency,proto3" json:"use_real_latency,omitempty"`
// contains filtered or unexported fields
}
func (*TmConfig) Descriptor
deprecated
func (*TmConfig) GetDefaultNicMonitor ¶
func (*TmConfig) GetDispatcher ¶
func (x *TmConfig) GetDispatcher() *DispatcherConfig
func (*TmConfig) GetGrpc ¶
func (x *TmConfig) GetGrpc() *GrpcConfig
func (*TmConfig) GetHysteria2RejectQuic ¶
func (*TmConfig) GetInboundManager ¶
func (x *TmConfig) GetInboundManager() *InboundManagerConfig
func (*TmConfig) GetLog ¶
func (x *TmConfig) GetLog() *LoggerConfig
func (*TmConfig) GetOutbound ¶
func (x *TmConfig) GetOutbound() *OutboundConfig
func (*TmConfig) GetPolicy ¶
func (x *TmConfig) GetPolicy() *PolicyConfig
func (*TmConfig) GetRedirectStdErr ¶
func (*TmConfig) GetRejectIpv6 ¶
func (*TmConfig) GetRouter ¶
func (x *TmConfig) GetRouter() *RouterConfig
func (*TmConfig) GetSelectors ¶
func (x *TmConfig) GetSelectors() *SelectorsConfig
func (*TmConfig) GetServicePort ¶
func (*TmConfig) GetServiceSecret ¶
func (*TmConfig) GetSubscription ¶
func (x *TmConfig) GetSubscription() *SubscriptionConfig
func (*TmConfig) GetSysProxy ¶
func (x *TmConfig) GetSysProxy() *SysProxyConfig
func (*TmConfig) GetUseRealLatency ¶
func (*TmConfig) ProtoMessage ¶
func (*TmConfig) ProtoMessage()
func (*TmConfig) ProtoReflect ¶
func (x *TmConfig) ProtoReflect() protoreflect.Message
type TransportConfig ¶
type TransportConfig struct {
Socket *SocketConfig `protobuf:"bytes,3,opt,name=socket,proto3" json:"socket,omitempty"`
// Types that are valid to be assigned to Protocol:
//
// *TransportConfig_Tcp
// *TransportConfig_Kcp
// *TransportConfig_Websocket
// *TransportConfig_Http
// *TransportConfig_Quic
// *TransportConfig_Grpc
// *TransportConfig_Httpupgrade
// *TransportConfig_Splithttp
Protocol isTransportConfig_Protocol `protobuf_oneof:"protocol"`
// Types that are valid to be assigned to Security:
//
// *TransportConfig_Tls
// *TransportConfig_Reality
Security isTransportConfig_Security `protobuf_oneof:"security"`
// contains filtered or unexported fields
}
func (*TransportConfig) Descriptor
deprecated
func (*TransportConfig) Descriptor() ([]byte, []int)
Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
func (*TransportConfig) GetGrpc ¶
func (x *TransportConfig) GetGrpc() *grpc.GrpcConfig
func (*TransportConfig) GetHttp ¶
func (x *TransportConfig) GetHttp() *http.HttpConfig
func (*TransportConfig) GetHttpupgrade ¶
func (x *TransportConfig) GetHttpupgrade() *httpupgrade.HttpUpgradeConfig
func (*TransportConfig) GetKcp ¶
func (x *TransportConfig) GetKcp() *kcp.KcpConfig
func (*TransportConfig) GetProtocol ¶
func (x *TransportConfig) GetProtocol() isTransportConfig_Protocol
func (*TransportConfig) GetQuic ¶
func (x *TransportConfig) GetQuic() *quic.QuicConfig
func (*TransportConfig) GetReality ¶
func (x *TransportConfig) GetReality() *reality.RealityConfig
func (*TransportConfig) GetSecurity ¶
func (x *TransportConfig) GetSecurity() isTransportConfig_Security
func (*TransportConfig) GetSocket ¶
func (x *TransportConfig) GetSocket() *SocketConfig
func (*TransportConfig) GetSplithttp ¶
func (x *TransportConfig) GetSplithttp() *splithttp.SplitHttpConfig
func (*TransportConfig) GetTcp ¶
func (x *TransportConfig) GetTcp() *tcp.TcpConfig
func (*TransportConfig) GetTls ¶
func (x *TransportConfig) GetTls() *tls.TlsConfig
func (*TransportConfig) GetWebsocket ¶
func (x *TransportConfig) GetWebsocket() *websocket.WebsocketConfig
func (*TransportConfig) ProtoMessage ¶
func (*TransportConfig) ProtoMessage()
func (*TransportConfig) ProtoReflect ¶
func (x *TransportConfig) ProtoReflect() protoreflect.Message
func (*TransportConfig) Reset ¶
func (x *TransportConfig) Reset()
func (*TransportConfig) String ¶
func (x *TransportConfig) String() string
type TransportConfig_Grpc ¶
type TransportConfig_Grpc struct {
Grpc *grpc.GrpcConfig `protobuf:"bytes,10,opt,name=grpc,proto3,oneof"`
}
type TransportConfig_Http ¶
type TransportConfig_Http struct {
Http *http.HttpConfig `protobuf:"bytes,8,opt,name=http,proto3,oneof"`
}
type TransportConfig_Httpupgrade ¶
type TransportConfig_Httpupgrade struct {
Httpupgrade *httpupgrade.HttpUpgradeConfig `protobuf:"bytes,11,opt,name=httpupgrade,proto3,oneof"`
}
type TransportConfig_Kcp ¶
type TransportConfig_Quic ¶
type TransportConfig_Quic struct {
Quic *quic.QuicConfig `protobuf:"bytes,9,opt,name=quic,proto3,oneof"`
}
type TransportConfig_Reality ¶
type TransportConfig_Reality struct {
Reality *reality.RealityConfig `protobuf:"bytes,21,opt,name=reality,proto3,oneof"`
}
type TransportConfig_Splithttp ¶
type TransportConfig_Splithttp struct {
Splithttp *splithttp.SplitHttpConfig `protobuf:"bytes,12,opt,name=splithttp,proto3,oneof"`
}
type TransportConfig_Tcp ¶
type TransportConfig_Tls ¶
type TransportConfig_Websocket ¶
type TransportConfig_Websocket struct {
Websocket *websocket.WebsocketConfig `protobuf:"bytes,7,opt,name=websocket,proto3,oneof"`
}
type TunConfig ¶
type TunConfig struct {
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
Mode Mode `protobuf:"varint,3,opt,name=mode,proto3,enum=x.Mode" json:"mode,omitempty"`
// whether to bind outbound traffic to the primary physical interface
ShouldBindDevice bool `protobuf:"varint,4,opt,name=should_bind_device,json=shouldBindDevice,proto3" json:"should_bind_device,omitempty"`
Device *TunDeviceConfig `protobuf:"bytes,5,opt,name=device,proto3" json:"device,omitempty"`
Tun46Setting TunConfig_TUN46Setting `` /* 128-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*TunConfig) Descriptor
deprecated
func (*TunConfig) GetDevice ¶
func (x *TunConfig) GetDevice() *TunDeviceConfig
func (*TunConfig) GetShouldBindDevice ¶
func (*TunConfig) GetTun46Setting ¶
func (x *TunConfig) GetTun46Setting() TunConfig_TUN46Setting
func (*TunConfig) ProtoMessage ¶
func (*TunConfig) ProtoMessage()
func (*TunConfig) ProtoReflect ¶
func (x *TunConfig) ProtoReflect() protoreflect.Message
type TunConfig_TUN46Setting ¶
type TunConfig_TUN46Setting int32
const ( TunConfig_FOUR_ONLY TunConfig_TUN46Setting = 0 TunConfig_BOTH TunConfig_TUN46Setting = 1 TunConfig_DYNAMIC TunConfig_TUN46Setting = 2 )
func (TunConfig_TUN46Setting) Descriptor ¶
func (TunConfig_TUN46Setting) Descriptor() protoreflect.EnumDescriptor
func (TunConfig_TUN46Setting) Enum ¶
func (x TunConfig_TUN46Setting) Enum() *TunConfig_TUN46Setting
func (TunConfig_TUN46Setting) EnumDescriptor
deprecated
func (TunConfig_TUN46Setting) EnumDescriptor() ([]byte, []int)
Deprecated: Use TunConfig_TUN46Setting.Descriptor instead.
func (TunConfig_TUN46Setting) Number ¶
func (x TunConfig_TUN46Setting) Number() protoreflect.EnumNumber
func (TunConfig_TUN46Setting) String ¶
func (x TunConfig_TUN46Setting) String() string
func (TunConfig_TUN46Setting) Type ¶
func (TunConfig_TUN46Setting) Type() protoreflect.EnumType
type TunDeviceConfig ¶
type TunDeviceConfig struct {
Cidr4 string `protobuf:"bytes,1,opt,name=cidr4,proto3" json:"cidr4,omitempty"`
Cidr6 string `protobuf:"bytes,2,opt,name=cidr6,proto3" json:"cidr6,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Mtu uint32 `protobuf:"varint,4,opt,name=mtu,proto3" json:"mtu,omitempty"`
// path to a dir containing four folders: amd64, x86, arm, arm64.
// Each folder contains the wintun.dll for the corresponding platform.
// Absolute or relative to cwd
// Windows only
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
Dns4 []string `protobuf:"bytes,6,rep,name=dns4,proto3" json:"dns4,omitempty"`
Dns6 []string `protobuf:"bytes,7,rep,name=dns6,proto3" json:"dns6,omitempty"`
Routes4 []string `protobuf:"bytes,9,rep,name=routes4,proto3" json:"routes4,omitempty"`
Routes6 []string `protobuf:"bytes,10,rep,name=routes6,proto3" json:"routes6,omitempty"`
// !Windows
Fd uint32 `protobuf:"varint,11,opt,name=fd,proto3" json:"fd,omitempty"`
// apps that does not use tun. Android only
BlackListApps []string `protobuf:"bytes,12,rep,name=black_list_apps,json=blackListApps,proto3" json:"black_list_apps,omitempty"`
// apps that use tun. Android only
WhiteListApps []string `protobuf:"bytes,13,rep,name=white_list_apps,json=whiteListApps,proto3" json:"white_list_apps,omitempty"`
// contains filtered or unexported fields
}
func (*TunDeviceConfig) Descriptor
deprecated
func (*TunDeviceConfig) Descriptor() ([]byte, []int)
Deprecated: Use TunDeviceConfig.ProtoReflect.Descriptor instead.
func (*TunDeviceConfig) GetBlackListApps ¶
func (x *TunDeviceConfig) GetBlackListApps() []string
func (*TunDeviceConfig) GetCidr4 ¶
func (x *TunDeviceConfig) GetCidr4() string
func (*TunDeviceConfig) GetCidr6 ¶
func (x *TunDeviceConfig) GetCidr6() string
func (*TunDeviceConfig) GetDns4 ¶
func (x *TunDeviceConfig) GetDns4() []string
func (*TunDeviceConfig) GetDns6 ¶
func (x *TunDeviceConfig) GetDns6() []string
func (*TunDeviceConfig) GetFd ¶
func (x *TunDeviceConfig) GetFd() uint32
func (*TunDeviceConfig) GetMtu ¶
func (x *TunDeviceConfig) GetMtu() uint32
func (*TunDeviceConfig) GetName ¶
func (x *TunDeviceConfig) GetName() string
func (*TunDeviceConfig) GetPath ¶
func (x *TunDeviceConfig) GetPath() string
func (*TunDeviceConfig) GetRoutes4 ¶
func (x *TunDeviceConfig) GetRoutes4() []string
func (*TunDeviceConfig) GetRoutes6 ¶
func (x *TunDeviceConfig) GetRoutes6() []string
func (*TunDeviceConfig) GetWhiteListApps ¶
func (x *TunDeviceConfig) GetWhiteListApps() []string
func (*TunDeviceConfig) ProtoMessage ¶
func (*TunDeviceConfig) ProtoMessage()
func (*TunDeviceConfig) ProtoReflect ¶
func (x *TunDeviceConfig) ProtoReflect() protoreflect.Message
func (*TunDeviceConfig) Reset ¶
func (x *TunDeviceConfig) Reset()
func (*TunDeviceConfig) String ¶
func (x *TunDeviceConfig) String() string
type UserConfig ¶
type UserConfig struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserLevel uint32 `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
// contains filtered or unexported fields
}
func (*UserConfig) Descriptor
deprecated
func (*UserConfig) Descriptor() ([]byte, []int)
Deprecated: Use UserConfig.ProtoReflect.Descriptor instead.
func (*UserConfig) GetId ¶
func (x *UserConfig) GetId() string
func (*UserConfig) GetSecret ¶
func (x *UserConfig) GetSecret() string
func (*UserConfig) GetUserLevel ¶
func (x *UserConfig) GetUserLevel() uint32
func (*UserConfig) ProtoMessage ¶
func (*UserConfig) ProtoMessage()
func (*UserConfig) ProtoReflect ¶
func (x *UserConfig) ProtoReflect() protoreflect.Message
func (*UserConfig) Reset ¶
func (x *UserConfig) Reset()
func (*UserConfig) String ¶
func (x *UserConfig) String() string
type UserManagerConfig ¶
type UserManagerConfig struct {
Users []*UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*UserManagerConfig) Descriptor
deprecated
func (*UserManagerConfig) Descriptor() ([]byte, []int)
Deprecated: Use UserManagerConfig.ProtoReflect.Descriptor instead.
func (*UserManagerConfig) GetUsers ¶
func (x *UserManagerConfig) GetUsers() []*UserConfig
func (*UserManagerConfig) ProtoMessage ¶
func (*UserManagerConfig) ProtoMessage()
func (*UserManagerConfig) ProtoReflect ¶
func (x *UserManagerConfig) ProtoReflect() protoreflect.Message
func (*UserManagerConfig) Reset ¶
func (x *UserManagerConfig) Reset()
func (*UserManagerConfig) String ¶
func (x *UserManagerConfig) String() string
type UserPolicy ¶
type UserPolicy struct {
BufferSize int32 `protobuf:"varint,1,opt,name=buffer_size,json=bufferSize,proto3" json:"buffer_size,omitempty"`
// contains filtered or unexported fields
}
func (*UserPolicy) Descriptor
deprecated
func (*UserPolicy) Descriptor() ([]byte, []int)
Deprecated: Use UserPolicy.ProtoReflect.Descriptor instead.
func (*UserPolicy) GetBufferSize ¶
func (x *UserPolicy) GetBufferSize() int32
func (*UserPolicy) ProtoMessage ¶
func (*UserPolicy) ProtoMessage()
func (*UserPolicy) ProtoReflect ¶
func (x *UserPolicy) ProtoReflect() protoreflect.Message
func (*UserPolicy) Reset ¶
func (x *UserPolicy) Reset()
func (*UserPolicy) String ¶
func (x *UserPolicy) String() string
type WfpConfig ¶
type WfpConfig struct {
TcpPort uint32 `protobuf:"varint,1,opt,name=tcp_port,json=tcpPort,proto3" json:"tcp_port,omitempty"`
UdpPort uint32 `protobuf:"varint,2,opt,name=udp_port,json=udpPort,proto3" json:"udp_port,omitempty"`
// contains filtered or unexported fields
}
func (*WfpConfig) Descriptor
deprecated
func (*WfpConfig) GetTcpPort ¶
func (*WfpConfig) GetUdpPort ¶
func (*WfpConfig) ProtoMessage ¶
func (*WfpConfig) ProtoMessage()
func (*WfpConfig) ProtoReflect ¶
func (x *WfpConfig) ProtoReflect() protoreflect.Message