Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetBypassFile() string
- func (x *Config) GetCustomRuleV2() map[string]*ModeConfig
- 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
- func (Mode) Descriptor() protoreflect.EnumDescriptor
- func (x Mode) Enum() *Mode
- func (Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (Mode) GetTag() string
- func (m Mode) Mode() Mode
- func (x Mode) Number() protoreflect.EnumNumber
- func (x Mode) String() string
- func (Mode) Type() protoreflect.EnumType
- func (m Mode) Unknown() bool
- type ModeConfig
- func (*ModeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ModeConfig) GetMode() Mode
- func (x *ModeConfig) GetTag() string
- func (*ModeConfig) ProtoMessage()
- func (x *ModeConfig) ProtoReflect() protoreflect.Message
- func (x *ModeConfig) Reset()
- func (f *ModeConfig) StoreKV(fs [][]byte)
- func (x *ModeConfig) String() string
- func (m *ModeConfig) Unknown() bool
- type ModeEnum
- type Tag
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"` CustomRuleV2 map[string]*ModeConfig `` /* 169-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) GetCustomRuleV2 ¶
func (x *Config) GetCustomRuleV2() map[string]*ModeConfig
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
type ModeConfig ¶
type ModeConfig struct { Mode Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=yuhaiin.bypass.Mode" json:"mode,omitempty"` Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*ModeConfig) Descriptor
deprecated
func (*ModeConfig) Descriptor() ([]byte, []int)
Deprecated: Use ModeConfig.ProtoReflect.Descriptor instead.
func (*ModeConfig) GetMode ¶
func (x *ModeConfig) GetMode() Mode
func (*ModeConfig) GetTag ¶
func (x *ModeConfig) GetTag() string
func (*ModeConfig) ProtoMessage ¶
func (*ModeConfig) ProtoMessage()
func (*ModeConfig) ProtoReflect ¶
func (x *ModeConfig) ProtoReflect() protoreflect.Message
func (*ModeConfig) Reset ¶
func (x *ModeConfig) Reset()
func (*ModeConfig) StoreKV ¶
func (f *ModeConfig) StoreKV(fs [][]byte)
func (*ModeConfig) String ¶
func (x *ModeConfig) String() string
func (*ModeConfig) Unknown ¶
func (m *ModeConfig) Unknown() bool
Click to show internal directories.
Click to hide internal directories.