config

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 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 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