Documentation ¶
Index ¶
- Variables
- 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 DnsConfig
- func (*DnsConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DnsConfig) GetBootstrap() *Dns
- func (x *DnsConfig) GetFakedns() bool
- func (x *DnsConfig) GetFakednsIpRange() string
- func (x *DnsConfig) GetFakednsIpv6Range() string
- func (x *DnsConfig) GetFakednsWhitelist() []string
- func (x *DnsConfig) GetHosts() map[string]string
- func (x *DnsConfig) GetLocal() *Dns
- func (x *DnsConfig) GetRemote() *Dns
- func (x *DnsConfig) GetResolver() map[string]*Dns
- func (x *DnsConfig) GetServer() string
- func (*DnsConfig) ProtoMessage()
- func (x *DnsConfig) ProtoReflect() protoreflect.Message
- func (x *DnsConfig) Reset()
- func (x *DnsConfig) 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 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 DnsConfig ¶
type DnsConfig 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"` FakednsIpv6Range string `protobuf:"bytes,13,opt,name=fakedns_ipv6_range,proto3" json:"fakedns_ipv6_range,omitempty"` FakednsWhitelist []string `protobuf:"bytes,9,rep,name=fakedns_whitelist,proto3" json:"fakedns_whitelist,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 */ Resolver map[string]*Dns `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DnsConfig) Descriptor
deprecated
func (*DnsConfig) GetBootstrap ¶
func (*DnsConfig) GetFakedns ¶
func (*DnsConfig) GetFakednsIpRange ¶
func (*DnsConfig) GetFakednsIpv6Range ¶ added in v0.3.5
func (*DnsConfig) GetFakednsWhitelist ¶ added in v0.3.4
func (*DnsConfig) GetResolver ¶ added in v0.3.5
func (*DnsConfig) ProtoMessage ¶
func (*DnsConfig) ProtoMessage()
func (*DnsConfig) ProtoReflect ¶
func (x *DnsConfig) 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.