configs

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_protos_client_proto protoreflect.FileDescriptor
View Source
var File_protos_dispatcher_proto protoreflect.FileDescriptor
View Source
var File_protos_dlhelper_proto protoreflect.FileDescriptor
View Source
var File_protos_dns_proto protoreflect.FileDescriptor
View Source
var File_protos_geo_proto protoreflect.FileDescriptor
View Source
var File_protos_inbound_proto protoreflect.FileDescriptor
View Source
var File_protos_logger_proto protoreflect.FileDescriptor
View Source
var File_protos_outbound_proto protoreflect.FileDescriptor
View Source
var File_protos_policy_proto protoreflect.FileDescriptor
View Source
var File_protos_router_proto protoreflect.FileDescriptor
View Source
var File_protos_sysproxy_proto protoreflect.FileDescriptor
View Source
var File_protos_transport_proto protoreflect.FileDescriptor
View Source
var File_protos_tun_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AppId.ProtoReflect.Descriptor instead.

func (*AppId) GetType

func (x *AppId) GetType() AppId_Type

func (*AppId) GetValue

func (x *AppId) GetValue() string

func (*AppId) ProtoMessage

func (*AppId) ProtoMessage()

func (*AppId) ProtoReflect

func (x *AppId) ProtoReflect() protoreflect.Message

func (*AppId) Reset

func (x *AppId) Reset()

func (*AppId) String

func (x *AppId) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use DnsConfig.ProtoReflect.Descriptor instead.

func (*DnsConfig) GetCacheDuration added in v1.0.2

func (x *DnsConfig) GetCacheDuration() uint32

func (*DnsConfig) GetDnsRules

func (x *DnsConfig) GetDnsRules() []*DnsRuleConfig

func (*DnsConfig) GetDnsServers

func (x *DnsConfig) GetDnsServers() []*DnsServerConfig

func (*DnsConfig) GetEnableFakeDns

func (x *DnsConfig) GetEnableFakeDns() bool

func (*DnsConfig) GetRecords

func (x *DnsConfig) GetRecords() []*Record

func (*DnsConfig) ProtoMessage

func (*DnsConfig) ProtoMessage()

func (*DnsConfig) ProtoReflect

func (x *DnsConfig) ProtoReflect() protoreflect.Message

func (*DnsConfig) Reset

func (x *DnsConfig) Reset()

func (*DnsConfig) String

func (x *DnsConfig) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DnsRules.ProtoReflect.Descriptor instead.

func (*DnsRules) GetRules

func (x *DnsRules) GetRules() []*DnsRuleConfig

func (*DnsRules) ProtoMessage

func (*DnsRules) ProtoMessage()

func (*DnsRules) ProtoReflect

func (x *DnsRules) ProtoReflect() protoreflect.Message

func (*DnsRules) Reset

func (x *DnsRules) Reset()

func (*DnsRules) String

func (x *DnsRules) String() string

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
const (
	DnsType_DnsType_A    DnsType = 0
	DnsType_DnsType_AAAA DnsType = 1
)

func (DnsType) Descriptor

func (DnsType) Descriptor() protoreflect.EnumDescriptor

func (DnsType) Enum

func (x DnsType) Enum() *DnsType

func (DnsType) EnumDescriptor deprecated

func (DnsType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DnsType.Descriptor instead.

func (DnsType) Number

func (x DnsType) Number() protoreflect.EnumNumber

func (DnsType) String

func (x DnsType) String() string

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) Enum

func (x DomainStrategy) Enum() *DomainStrategy

func (DomainStrategy) EnumDescriptor deprecated

func (DomainStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use DomainStrategy.Descriptor instead.

func (DomainStrategy) Number

func (DomainStrategy) String

func (x DomainStrategy) String() string

func (DomainStrategy) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use GeoConfig.ProtoReflect.Descriptor instead.

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

func (*GeoConfig) Reset

func (x *GeoConfig) Reset()

func (*GeoConfig) String

func (x *GeoConfig) String() string

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
const (
	Level_DEBUG    Level = 0
	Level_INFO     Level = 1
	Level_WARN     Level = 2
	Level_ERROR    Level = 3
	Level_FATAL    Level = 4
	Level_DISABLED Level = 5
)

func (Level) Descriptor

func (Level) Descriptor() protoreflect.EnumDescriptor

func (Level) Enum

func (x Level) Enum() *Level

func (Level) EnumDescriptor deprecated

func (Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use Level.Descriptor instead.

func (Level) Number

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

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
const (
	Mode_MODE_SYSTEM Mode = 0
	Mode_MODE_GVISOR Mode = 1
)

func (Mode) Descriptor

func (Mode) Descriptor() protoreflect.EnumDescriptor

func (Mode) Enum

func (x Mode) Enum() *Mode

func (Mode) EnumDescriptor deprecated

func (Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Mode.Descriptor instead.

func (Mode) Number

func (x Mode) Number() protoreflect.EnumNumber

func (Mode) String

func (x Mode) String() string

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 (*MultiProxyInboundConfig_Protocol) GetAlways

func (x *MultiProxyInboundConfig_Protocol) GetAlways() bool

func (*MultiProxyInboundConfig_Protocol) GetGrpc

func (*MultiProxyInboundConfig_Protocol) GetH2

func (*MultiProxyInboundConfig_Protocol) GetHttp

func (*MultiProxyInboundConfig_Protocol) GetHttpupgrade

func (*MultiProxyInboundConfig_Protocol) GetPath

func (*MultiProxyInboundConfig_Protocol) GetProtocol

func (x *MultiProxyInboundConfig_Protocol) GetProtocol() isMultiProxyInboundConfig_Protocol_Protocol

func (*MultiProxyInboundConfig_Protocol) GetSni

func (*MultiProxyInboundConfig_Protocol) GetSplithttp

func (*MultiProxyInboundConfig_Protocol) GetTcp

func (*MultiProxyInboundConfig_Protocol) GetWebsocket

func (*MultiProxyInboundConfig_Protocol) ProtoMessage

func (*MultiProxyInboundConfig_Protocol) ProtoMessage()

func (*MultiProxyInboundConfig_Protocol) ProtoReflect

func (*MultiProxyInboundConfig_Protocol) Reset

func (*MultiProxyInboundConfig_Protocol) 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_Tcp

type MultiProxyInboundConfig_Protocol_Tcp struct {
	Tcp *tcp.TcpConfig `protobuf:"bytes,13,opt,name=tcp,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 (*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 (*MultiProxyInboundConfig_Security) ProtoMessage

func (*MultiProxyInboundConfig_Security) ProtoMessage()

func (*MultiProxyInboundConfig_Security) ProtoReflect

func (*MultiProxyInboundConfig_Security) Reset

func (*MultiProxyInboundConfig_Security) String

type MultiProxyInboundConfig_Security_Reality

type MultiProxyInboundConfig_Security_Reality struct {
	Reality *reality.RealityConfig `protobuf:"bytes,21,opt,name=reality,proto3,oneof"`
}

type MultiProxyInboundConfig_Security_Tls

type MultiProxyInboundConfig_Security_Tls struct {
	Tls *tls.TlsConfig `protobuf:"bytes,20,opt,name=tls,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) Descriptor() ([]byte, []int)

Deprecated: Use MuxConfig.ProtoReflect.Descriptor instead.

func (*MuxConfig) GetMaxConcurrency

func (x *MuxConfig) GetMaxConcurrency() uint32

func (*MuxConfig) GetMaxConnection

func (x *MuxConfig) GetMaxConnection() uint32

func (*MuxConfig) ProtoMessage

func (*MuxConfig) ProtoMessage()

func (*MuxConfig) ProtoReflect

func (x *MuxConfig) ProtoReflect() protoreflect.Message

func (*MuxConfig) Reset

func (x *MuxConfig) Reset()

func (*MuxConfig) String

func (x *MuxConfig) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetDomain

func (x *Record) GetDomain() string

func (*Record) GetIp

func (x *Record) GetIp() []string

func (*Record) GetProxiedDomain

func (x *Record) GetProxiedDomain() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

func (x *Record) ProtoReflect() protoreflect.Message

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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 (*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) Enum

func (SelectorConfig_BalanceStrategy) EnumDescriptor deprecated

func (SelectorConfig_BalanceStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use SelectorConfig_BalanceStrategy.Descriptor instead.

func (SelectorConfig_BalanceStrategy) Number

func (SelectorConfig_BalanceStrategy) String

func (SelectorConfig_BalanceStrategy) Type

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) Enum

func (SelectorConfig_SelectingStrategy) EnumDescriptor deprecated

func (SelectorConfig_SelectingStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use SelectorConfig_SelectingStrategy.Descriptor instead.

func (SelectorConfig_SelectingStrategy) Number

func (SelectorConfig_SelectingStrategy) String

func (SelectorConfig_SelectingStrategy) Type

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 (*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) Enum

func (SocketConfig_TCPFastOpenState) EnumDescriptor deprecated

func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int)

Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead.

func (SocketConfig_TCPFastOpenState) Number

func (SocketConfig_TCPFastOpenState) String

func (SocketConfig_TCPFastOpenState) Type

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) Enum

func (SocketConfig_TProxyMode) EnumDescriptor deprecated

func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.

func (SocketConfig_TProxyMode) Number

func (SocketConfig_TProxyMode) String

func (x SocketConfig_TProxyMode) String() string

func (SocketConfig_TProxyMode) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use TmConfig.ProtoReflect.Descriptor instead.

func (*TmConfig) GetDbPath

func (x *TmConfig) GetDbPath() string

func (*TmConfig) GetDefaultNicMonitor

func (x *TmConfig) GetDefaultNicMonitor() bool

func (*TmConfig) GetDispatcher

func (x *TmConfig) GetDispatcher() *DispatcherConfig

func (*TmConfig) GetDns

func (x *TmConfig) GetDns() *DnsConfig

func (*TmConfig) GetGeo

func (x *TmConfig) GetGeo() *GeoConfig

func (*TmConfig) GetGrpc

func (x *TmConfig) GetGrpc() *GrpcConfig

func (*TmConfig) GetHysteria2RejectQuic

func (x *TmConfig) GetHysteria2RejectQuic() bool

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 (x *TmConfig) GetRedirectStdErr() string

func (*TmConfig) GetRejectIpv6

func (x *TmConfig) GetRejectIpv6() bool

func (*TmConfig) GetRouter

func (x *TmConfig) GetRouter() *RouterConfig

func (*TmConfig) GetSelectors

func (x *TmConfig) GetSelectors() *SelectorsConfig

func (*TmConfig) GetServicePort

func (x *TmConfig) GetServicePort() uint32

func (*TmConfig) GetServiceSecret

func (x *TmConfig) GetServiceSecret() string

func (*TmConfig) GetSubscription

func (x *TmConfig) GetSubscription() *SubscriptionConfig

func (*TmConfig) GetSysProxy

func (x *TmConfig) GetSysProxy() *SysProxyConfig

func (*TmConfig) GetTun

func (x *TmConfig) GetTun() *TunConfig

func (*TmConfig) GetUseRealLatency

func (x *TmConfig) GetUseRealLatency() bool

func (*TmConfig) GetWfp

func (x *TmConfig) GetWfp() *WfpConfig

func (*TmConfig) ProtoMessage

func (*TmConfig) ProtoMessage()

func (*TmConfig) ProtoReflect

func (x *TmConfig) ProtoReflect() protoreflect.Message

func (*TmConfig) Reset

func (x *TmConfig) Reset()

func (*TmConfig) String

func (x *TmConfig) String() string

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_Kcp struct {
	Kcp *kcp.KcpConfig `protobuf:"bytes,6,opt,name=kcp,proto3,oneof"`
}

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_Tcp struct {
	Tcp *tcp.TcpConfig `protobuf:"bytes,5,opt,name=tcp,proto3,oneof"`
}

type TransportConfig_Tls

type TransportConfig_Tls struct {
	Tls *tls.TlsConfig `protobuf:"bytes,20,opt,name=tls,proto3,oneof"`
}

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) Descriptor() ([]byte, []int)

Deprecated: Use TunConfig.ProtoReflect.Descriptor instead.

func (*TunConfig) GetDevice

func (x *TunConfig) GetDevice() *TunDeviceConfig

func (*TunConfig) GetMode

func (x *TunConfig) GetMode() Mode

func (*TunConfig) GetShouldBindDevice

func (x *TunConfig) GetShouldBindDevice() bool

func (*TunConfig) GetTag

func (x *TunConfig) GetTag() string

func (*TunConfig) GetTun46Setting

func (x *TunConfig) GetTun46Setting() TunConfig_TUN46Setting

func (*TunConfig) ProtoMessage

func (*TunConfig) ProtoMessage()

func (*TunConfig) ProtoReflect

func (x *TunConfig) ProtoReflect() protoreflect.Message

func (*TunConfig) Reset

func (x *TunConfig) Reset()

func (*TunConfig) String

func (x *TunConfig) String() string

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) Enum

func (TunConfig_TUN46Setting) EnumDescriptor deprecated

func (TunConfig_TUN46Setting) EnumDescriptor() ([]byte, []int)

Deprecated: Use TunConfig_TUN46Setting.Descriptor instead.

func (TunConfig_TUN46Setting) Number

func (TunConfig_TUN46Setting) String

func (x TunConfig_TUN46Setting) String() string

func (TunConfig_TUN46Setting) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use WfpConfig.ProtoReflect.Descriptor instead.

func (*WfpConfig) GetTcpPort

func (x *WfpConfig) GetTcpPort() uint32

func (*WfpConfig) GetUdpPort

func (x *WfpConfig) GetUdpPort() uint32

func (*WfpConfig) ProtoMessage

func (*WfpConfig) ProtoMessage()

func (*WfpConfig) ProtoReflect

func (x *WfpConfig) ProtoReflect() protoreflect.Message

func (*WfpConfig) Reset

func (x *WfpConfig) Reset()

func (*WfpConfig) String

func (x *WfpConfig) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL