dns

package
v0.3.1-rc.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 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 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) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetBootstrap

func (x *Config) GetBootstrap() *Dns

func (*Config) GetFakedns

func (x *Config) GetFakedns() bool

func (*Config) GetFakednsIpRange

func (x *Config) GetFakednsIpRange() string

func (*Config) GetHosts

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

func (*Config) GetLocal

func (x *Config) GetLocal() *Dns

func (*Config) GetRemote

func (x *Config) GetRemote() *Dns

func (*Config) GetResolveRemoteDomain

func (x *Config) GetResolveRemoteDomain() bool

func (*Config) GetServer

func (x *Config) GetServer() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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