Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetBypassFile() string
- func (x *Config) GetCustomRule() map[string]Mode
- func (x *Config) GetTcp() Mode
- func (x *Config) GetUdp() Mode
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type Mode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mode_name = map[int32]string{ 0: "bypass", 1: "direct", 2: "proxy", 3: "block", } Mode_value = map[string]int32{ "bypass": 0, "direct": 1, "proxy": 2, "block": 3, } )
Enum value maps for Mode.
View Source
var File_config_bypass_bypass_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.7
type Config struct { Tcp Mode `protobuf:"varint,3,opt,name=tcp,proto3,enum=yuhaiin.bypass.Mode" json:"tcp,omitempty"` Udp Mode `protobuf:"varint,4,opt,name=udp,proto3,enum=yuhaiin.bypass.Mode" json:"udp,omitempty"` BypassFile string `protobuf:"bytes,2,opt,name=bypass_file,proto3" json:"bypass_file,omitempty"` CustomRule map[string]Mode `` /* 189-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
added in
v0.3.7
func (*Config) GetBypassFile ¶ added in v0.3.7
func (*Config) GetCustomRule ¶
func (*Config) ProtoMessage ¶ added in v0.3.7
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶ added in v0.3.7
func (x *Config) ProtoReflect() protoreflect.Message
type Mode ¶
type Mode int32
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.