Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetBootstrap() *Dns
- func (x *Config) GetFakedns() bool
- func (x *Config) GetFakednsIpRange() string
- func (x *Config) GetHosts() map[string]string
- func (x *Config) GetLocal() *Dns
- func (x *Config) GetRemote() *Dns
- func (x *Config) GetResolveRemoteDomain() bool
- func (x *Config) GetServer() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Dns
- func (*Dns) Descriptor() ([]byte, []int)deprecated
- func (x *Dns) GetHost() string
- func (x *Dns) GetSubnet() string
- func (x *Dns) GetTlsServername() string
- func (x *Dns) GetType() Type
- func (*Dns) ProtoMessage()
- func (x *Dns) ProtoReflect() protoreflect.Message
- func (x *Dns) Reset()
- func (x *Dns) String() string
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Type_name = map[int32]string{ 0: "reserve", 1: "udp", 2: "tcp", 3: "doh", 4: "dot", 5: "doq", 6: "doh3", } Type_value = map[string]int32{ "reserve": 0, "udp": 1, "tcp": 2, "doh": 3, "dot": 4, "doq": 5, "doh3": 6, } )
Enum value maps for Type.
View Source
var File_config_dns_dns_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server string `protobuf:"bytes,4,opt,name=server,proto3" json:"server,omitempty"` Fakedns bool `protobuf:"varint,5,opt,name=fakedns,proto3" json:"fakedns,omitempty"` FakednsIpRange string `protobuf:"bytes,6,opt,name=fakedns_ip_range,proto3" json:"fakedns_ip_range,omitempty"` ResolveRemoteDomain bool `protobuf:"varint,7,opt,name=resolve_remote_domain,proto3" json:"resolve_remote_domain,omitempty"` Remote *Dns `protobuf:"bytes,1,opt,name=remote,proto3" json:"remote,omitempty"` Local *Dns `protobuf:"bytes,2,opt,name=local,proto3" json:"local,omitempty"` Bootstrap *Dns `protobuf:"bytes,3,opt,name=bootstrap,proto3" json:"bootstrap,omitempty"` Hosts map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetBootstrap ¶
func (*Config) GetFakedns ¶
func (*Config) GetFakednsIpRange ¶
func (*Config) GetResolveRemoteDomain ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Dns ¶
type Dns struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Type Type `protobuf:"varint,5,opt,name=type,proto3,enum=yuhaiin.dns.Type" json:"type,omitempty"` Subnet string `protobuf:"bytes,4,opt,name=subnet,proto3" json:"subnet,omitempty"` TlsServername string `protobuf:"bytes,2,opt,name=tls_servername,proto3" json:"tls_servername,omitempty"` // contains filtered or unexported fields }
func (*Dns) Descriptor
deprecated
func (*Dns) GetTlsServername ¶
func (*Dns) ProtoMessage ¶
func (*Dns) ProtoMessage()
func (*Dns) ProtoReflect ¶
func (x *Dns) ProtoReflect() protoreflect.Message
type Type ¶
type Type int32
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.