Documentation ¶
Index ¶
- Variables
- func DefaultConfigDir() (Path string)
- type Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetArch() string
- func (x *Info) GetBuild() []string
- func (x *Info) GetBuildTime() string
- func (x *Info) GetCommit() string
- func (x *Info) GetCompiler() string
- func (x *Info) GetGoVersion() string
- func (x *Info) GetOs() string
- func (x *Info) GetPlatform() string
- func (x *Info) GetVersion() string
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetBypass() *bypass.BypassConfig
- func (x *Setting) GetDns() *dns.DnsConfig
- func (x *Setting) GetIpv6() bool
- func (x *Setting) GetLogcat() *log.Logcat
- func (x *Setting) GetNetInterface() string
- func (x *Setting) GetServer() *listener.InboundConfig
- 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 Info ¶ added in v0.3.5
type Info struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Commit string `protobuf:"bytes,2,opt,name=commit,proto3" json:"commit,omitempty"` BuildTime string `protobuf:"bytes,3,opt,name=build_time,proto3" json:"build_time,omitempty"` GoVersion string `protobuf:"bytes,4,opt,name=go_version,proto3" json:"go_version,omitempty"` Arch string `protobuf:"bytes,5,opt,name=arch,proto3" json:"arch,omitempty"` Platform string `protobuf:"bytes,6,opt,name=platform,proto3" json:"platform,omitempty"` Os string `protobuf:"bytes,7,opt,name=os,proto3" json:"os,omitempty"` Compiler string `protobuf:"bytes,8,opt,name=compiler,proto3" json:"compiler,omitempty"` Build []string `protobuf:"bytes,9,rep,name=build,proto3" json:"build,omitempty"` // contains filtered or unexported fields }
func (*Info) Descriptor
deprecated
added in
v0.3.5
func (*Info) GetBuildTime ¶ added in v0.3.5
func (*Info) GetCompiler ¶ added in v0.3.5
func (*Info) GetGoVersion ¶ added in v0.3.5
func (*Info) GetPlatform ¶ added in v0.3.5
func (*Info) GetVersion ¶ added in v0.3.5
func (*Info) ProtoMessage ¶ added in v0.3.5
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶ added in v0.3.5
func (x *Info) ProtoReflect() protoreflect.Message
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.BypassConfig `protobuf:"bytes,2,opt,name=bypass,proto3" json:"bypass,omitempty"` Dns *dns.DnsConfig `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"` Server *listener.InboundConfig `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) GetBypass ¶
func (x *Setting) GetBypass() *bypass.BypassConfig
func (*Setting) GetNetInterface ¶
func (*Setting) GetServer ¶
func (x *Setting) GetServer() *listener.InboundConfig
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.