config

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetArch added in v0.3.5

func (x *Info) GetArch() string

func (*Info) GetBuild added in v0.3.5

func (x *Info) GetBuild() []string

func (*Info) GetBuildTime added in v0.3.5

func (x *Info) GetBuildTime() string

func (*Info) GetCommit added in v0.3.5

func (x *Info) GetCommit() string

func (*Info) GetCompiler added in v0.3.5

func (x *Info) GetCompiler() string

func (*Info) GetGoVersion added in v0.3.5

func (x *Info) GetGoVersion() string

func (*Info) GetOs added in v0.3.5

func (x *Info) GetOs() string

func (*Info) GetPlatform added in v0.3.5

func (x *Info) GetPlatform() string

func (*Info) GetVersion added in v0.3.5

func (x *Info) GetVersion() string

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

func (*Info) Reset added in v0.3.5

func (x *Info) Reset()

func (*Info) String added in v0.3.5

func (x *Info) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetBypass

func (x *Setting) GetBypass() *bypass.BypassConfig

func (*Setting) GetDns

func (x *Setting) GetDns() *dns.DnsConfig

func (*Setting) GetIpv6

func (x *Setting) GetIpv6() bool

func (*Setting) GetLogcat

func (x *Setting) GetLogcat() *log.Logcat

func (*Setting) GetNetInterface

func (x *Setting) GetNetInterface() string

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

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL