Documentation ¶
Index ¶
- Variables
- func DefaultConfigDir() (Path string)
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetBypass() *bypass.Config
- func (x *Setting) GetDns() *dns.Config
- func (x *Setting) GetIpv6() bool
- func (x *Setting) GetLogcat() *log.Logcat
- func (x *Setting) GetNetInterface() string
- func (x *Setting) GetServer() *listener.Config
- func (x *Setting) GetSystemProxy() *SystemProxy
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) String() string
- type SystemProxy
Constants ¶
This section is empty.
Variables ¶
View Source
var File_config_config_proto protoreflect.FileDescriptor
Functions ¶
func DefaultConfigDir ¶
func DefaultConfigDir() (Path string)
Types ¶
type Setting ¶
type Setting struct { Ipv6 bool `protobuf:"varint,7,opt,name=ipv6,proto3" json:"ipv6,omitempty"` // net_interface, eg: eth0 NetInterface string `protobuf:"bytes,6,opt,name=net_interface,proto3" json:"net_interface,omitempty"` SystemProxy *SystemProxy `protobuf:"bytes,1,opt,name=system_proxy,proto3" json:"system_proxy,omitempty"` Bypass *bypass.Config `protobuf:"bytes,2,opt,name=bypass,proto3" json:"bypass,omitempty"` Dns *dns.Config `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"` Server *listener.Config `protobuf:"bytes,5,opt,name=server,proto3" json:"server,omitempty"` Logcat *log.Logcat `protobuf:"bytes,8,opt,name=logcat,proto3" json:"logcat,omitempty"` // contains filtered or unexported fields }
func (*Setting) Descriptor
deprecated
func (*Setting) GetNetInterface ¶
func (*Setting) GetSystemProxy ¶
func (x *Setting) GetSystemProxy() *SystemProxy
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
type SystemProxy ¶
type SystemProxy struct { Http bool `protobuf:"varint,2,opt,name=http,proto3" json:"http,omitempty"` Socks5 bool `protobuf:"varint,3,opt,name=socks5,proto3" json:"socks5,omitempty"` // contains filtered or unexported fields }
func (*SystemProxy) Descriptor
deprecated
func (*SystemProxy) Descriptor() ([]byte, []int)
Deprecated: Use SystemProxy.ProtoReflect.Descriptor instead.
func (*SystemProxy) GetHttp ¶
func (x *SystemProxy) GetHttp() bool
func (*SystemProxy) GetSocks5 ¶
func (x *SystemProxy) GetSocks5() bool
func (*SystemProxy) ProtoMessage ¶
func (*SystemProxy) ProtoMessage()
func (*SystemProxy) ProtoReflect ¶
func (x *SystemProxy) ProtoReflect() protoreflect.Message
func (*SystemProxy) Reset ¶
func (x *SystemProxy) Reset()
func (*SystemProxy) String ¶
func (x *SystemProxy) String() string
Click to show internal directories.
Click to hide internal directories.