dns

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Deprecated: Use Dns.ProtoReflect.Descriptor instead.

func (*Dns) GetHost

func (x *Dns) GetHost() string

func (*Dns) GetSubnet

func (x *Dns) GetSubnet() string

func (*Dns) GetTlsServername

func (x *Dns) GetTlsServername() string

func (*Dns) GetType

func (x *Dns) GetType() Type

func (*Dns) ProtoMessage

func (*Dns) ProtoMessage()

func (*Dns) ProtoReflect

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

func (*Dns) Reset

func (x *Dns) Reset()

func (*Dns) String

func (x *Dns) String() string

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"`
	FakednsWhitelist    []string          `protobuf:"bytes,9,rep,name=fakedns_whitelist,proto3" json:"fakedns_whitelist,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 (*DnsConfig) Descriptor deprecated

func (*DnsConfig) Descriptor() ([]byte, []int)

Deprecated: Use DnsConfig.ProtoReflect.Descriptor instead.

func (*DnsConfig) GetBootstrap

func (x *DnsConfig) GetBootstrap() *Dns

func (*DnsConfig) GetFakedns

func (x *DnsConfig) GetFakedns() bool

func (*DnsConfig) GetFakednsIpRange

func (x *DnsConfig) GetFakednsIpRange() string

func (*DnsConfig) GetFakednsWhitelist added in v0.3.4

func (x *DnsConfig) GetFakednsWhitelist() []string

func (*DnsConfig) GetHosts

func (x *DnsConfig) GetHosts() map[string]string

func (*DnsConfig) GetLocal

func (x *DnsConfig) GetLocal() *Dns

func (*DnsConfig) GetRemote

func (x *DnsConfig) GetRemote() *Dns

func (*DnsConfig) GetResolveRemoteDomain

func (x *DnsConfig) GetResolveRemoteDomain() bool

func (*DnsConfig) GetServer

func (x *DnsConfig) GetServer() string

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 Type

type Type int32
const (
	Type_reserve Type = 0
	Type_udp     Type = 1
	Type_tcp     Type = 2
	Type_doh     Type = 3
	Type_dot     Type = 4
	Type_doq     Type = 5
	Type_doh3    Type = 6
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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