Documentation
¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetRule() []*DNSRuleConfig
- 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 DNSRule
- type DNSRuleConfig
- func (*DNSRuleConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DNSRuleConfig) GetAction() RuleAction
- func (x *DNSRuleConfig) GetDomain() []*geodata.DomainRule
- func (x *DNSRuleConfig) GetQtype() []int32
- func (*DNSRuleConfig) ProtoMessage()
- func (x *DNSRuleConfig) ProtoReflect() protoreflect.Message
- func (x *DNSRuleConfig) Reset()
- func (x *DNSRuleConfig) String() string
- type Handler
- type RuleAction
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RuleAction_name = map[int32]string{ 0: "Direct", 1: "Drop", 2: "Reject", 3: "Hijack", } RuleAction_value = map[string]int32{ "Direct": 0, "Drop": 1, "Reject": 2, "Hijack": 3, } )
Enum value maps for RuleAction.
View Source
var File_proxy_dns_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
UserLevel uint32 `protobuf:"varint,1,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
Rule []*DNSRuleConfig `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
Server *net.Endpoint `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"`
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) GetRule ¶
func (x *Config) GetRule() []*DNSRuleConfig
func (*Config) GetUserLevel ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type DNSRuleConfig ¶
type DNSRuleConfig struct {
Action RuleAction `protobuf:"varint,1,opt,name=action,proto3,enum=xray.proxy.dns.RuleAction" json:"action,omitempty"`
Qtype []int32 `protobuf:"varint,2,rep,packed,name=qtype,proto3" json:"qtype,omitempty"`
Domain []*geodata.DomainRule `protobuf:"bytes,3,rep,name=domain,proto3" json:"domain,omitempty"`
// contains filtered or unexported fields
}
func (*DNSRuleConfig) Descriptor
deprecated
func (*DNSRuleConfig) Descriptor() ([]byte, []int)
Deprecated: Use DNSRuleConfig.ProtoReflect.Descriptor instead.
func (*DNSRuleConfig) GetAction ¶
func (x *DNSRuleConfig) GetAction() RuleAction
func (*DNSRuleConfig) GetDomain ¶
func (x *DNSRuleConfig) GetDomain() []*geodata.DomainRule
func (*DNSRuleConfig) GetQtype ¶
func (x *DNSRuleConfig) GetQtype() []int32
func (*DNSRuleConfig) ProtoMessage ¶
func (*DNSRuleConfig) ProtoMessage()
func (*DNSRuleConfig) ProtoReflect ¶
func (x *DNSRuleConfig) ProtoReflect() protoreflect.Message
func (*DNSRuleConfig) Reset ¶
func (x *DNSRuleConfig) Reset()
func (*DNSRuleConfig) String ¶
func (x *DNSRuleConfig) String() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
type RuleAction ¶
type RuleAction int32
const ( RuleAction_Direct RuleAction = 0 RuleAction_Drop RuleAction = 1 RuleAction_Reject RuleAction = 2 RuleAction_Hijack RuleAction = 3 )
func (RuleAction) Descriptor ¶
func (RuleAction) Descriptor() protoreflect.EnumDescriptor
func (RuleAction) Enum ¶
func (x RuleAction) Enum() *RuleAction
func (RuleAction) EnumDescriptor
deprecated
func (RuleAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use RuleAction.Descriptor instead.
func (RuleAction) Number ¶
func (x RuleAction) Number() protoreflect.EnumNumber
func (RuleAction) String ¶
func (x RuleAction) String() string
func (RuleAction) Type ¶
func (RuleAction) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.