Documentation
¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetNon_IPQuery() string
- func (x *Config) GetOverrideResponseTtl() bool
- func (x *Config) GetResponseTtl() uint32
- func (x *Config) GetServer() *net.Endpoint
- func (x *Config) GetUserLevel() uint32
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Handler
- type SimplifiedConfig
- func (*SimplifiedConfig) Descriptor() ([]byte, []int)deprecated
- func (x *SimplifiedConfig) GetOverrideResponseTtl() bool
- func (x *SimplifiedConfig) GetResponseTtl() uint32
- func (*SimplifiedConfig) ProtoMessage()
- func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message
- func (x *SimplifiedConfig) Reset()
- func (x *SimplifiedConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proxy_dns_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Server is the DNS server address. If specified, this address overrides the
// original one.
Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
UserLevel uint32 `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
OverrideResponseTtl bool `protobuf:"varint,4,opt,name=override_response_ttl,json=overrideResponseTtl,proto3" json:"override_response_ttl,omitempty"`
ResponseTtl uint32 `protobuf:"varint,3,opt,name=response_ttl,json=responseTtl,proto3" json:"response_ttl,omitempty"`
Non_IPQuery string `protobuf:"bytes,5,opt,name=non_IP_query,json=nonIPQuery,proto3" json:"non_IP_query,omitempty"`
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) GetNon_IPQuery ¶ added in v5.36.0
func (*Config) GetOverrideResponseTtl ¶ added in v5.30.0
func (*Config) GetResponseTtl ¶ added in v5.30.0
func (*Config) GetUserLevel ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
type SimplifiedConfig ¶
type SimplifiedConfig struct {
OverrideResponseTtl bool `protobuf:"varint,4,opt,name=override_response_ttl,json=overrideResponseTtl,proto3" json:"override_response_ttl,omitempty"`
ResponseTtl uint32 `protobuf:"varint,3,opt,name=response_ttl,json=responseTtl,proto3" json:"response_ttl,omitempty"`
// contains filtered or unexported fields
}
func (*SimplifiedConfig) Descriptor
deprecated
func (*SimplifiedConfig) Descriptor() ([]byte, []int)
Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
func (*SimplifiedConfig) GetOverrideResponseTtl ¶ added in v5.30.0
func (x *SimplifiedConfig) GetOverrideResponseTtl() bool
func (*SimplifiedConfig) GetResponseTtl ¶ added in v5.30.0
func (x *SimplifiedConfig) GetResponseTtl() uint32
func (*SimplifiedConfig) ProtoMessage ¶
func (*SimplifiedConfig) ProtoMessage()
func (*SimplifiedConfig) ProtoReflect ¶
func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message
func (*SimplifiedConfig) Reset ¶
func (x *SimplifiedConfig) Reset()
func (*SimplifiedConfig) String ¶
func (x *SimplifiedConfig) String() string
Click to show internal directories.
Click to hide internal directories.