config

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 13 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 AdvancedConfig added in v0.3.8

type AdvancedConfig struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*AdvancedConfig) ClearRelayBufferSize added in v0.3.8

func (x *AdvancedConfig) ClearRelayBufferSize()

func (*AdvancedConfig) ClearUdpBufferSize added in v0.3.8

func (x *AdvancedConfig) ClearUdpBufferSize()

func (*AdvancedConfig) GetRelayBufferSize added in v0.3.8

func (x *AdvancedConfig) GetRelayBufferSize() int32

func (*AdvancedConfig) GetUdpBufferSize added in v0.3.8

func (x *AdvancedConfig) GetUdpBufferSize() int32

func (*AdvancedConfig) HasRelayBufferSize added in v0.3.8

func (x *AdvancedConfig) HasRelayBufferSize() bool

func (*AdvancedConfig) HasUdpBufferSize added in v0.3.8

func (x *AdvancedConfig) HasUdpBufferSize() bool

func (*AdvancedConfig) ProtoMessage added in v0.3.8

func (*AdvancedConfig) ProtoMessage()

func (*AdvancedConfig) ProtoReflect added in v0.3.8

func (x *AdvancedConfig) ProtoReflect() protoreflect.Message

func (*AdvancedConfig) Reset added in v0.3.8

func (x *AdvancedConfig) Reset()

func (*AdvancedConfig) SetRelayBufferSize added in v0.3.8

func (x *AdvancedConfig) SetRelayBufferSize(v int32)

func (*AdvancedConfig) SetUdpBufferSize added in v0.3.8

func (x *AdvancedConfig) SetUdpBufferSize(v int32)

func (*AdvancedConfig) String added in v0.3.8

func (x *AdvancedConfig) String() string

type AdvancedConfig_builder added in v0.3.8

type AdvancedConfig_builder struct {
	UdpBufferSize   *int32
	RelayBufferSize *int32
	// contains filtered or unexported fields
}

func (AdvancedConfig_builder) Build added in v0.3.8

type ConfigVersion added in v0.3.7

type ConfigVersion struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*ConfigVersion) ClearVersion added in v0.3.8

func (x *ConfigVersion) ClearVersion()

func (*ConfigVersion) GetVersion added in v0.3.7

func (x *ConfigVersion) GetVersion() uint64

func (*ConfigVersion) HasVersion added in v0.3.8

func (x *ConfigVersion) HasVersion() bool

func (*ConfigVersion) ProtoMessage added in v0.3.7

func (*ConfigVersion) ProtoMessage()

func (*ConfigVersion) ProtoReflect added in v0.3.7

func (x *ConfigVersion) ProtoReflect() protoreflect.Message

func (*ConfigVersion) Reset added in v0.3.7

func (x *ConfigVersion) Reset()

func (*ConfigVersion) SetVersion added in v0.3.8

func (x *ConfigVersion) SetVersion(v uint64)

func (*ConfigVersion) String added in v0.3.7

func (x *ConfigVersion) String() string

type ConfigVersion_builder added in v0.3.8

type ConfigVersion_builder struct {
	Version *uint64
	// contains filtered or unexported fields
}

func (ConfigVersion_builder) Build added in v0.3.8

type DB added in v0.3.7

type DB interface {
	Batch(f ...func(*Setting) error) error
	View(f ...func(*Setting) error) error
	Dir() string
}

type Info added in v0.3.5

type Info struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*Info) ClearArch added in v0.3.8

func (x *Info) ClearArch()

func (*Info) ClearBuildTime added in v0.3.8

func (x *Info) ClearBuildTime()

func (*Info) ClearCommit added in v0.3.8

func (x *Info) ClearCommit()

func (*Info) ClearCompiler added in v0.3.8

func (x *Info) ClearCompiler()

func (*Info) ClearGoVersion added in v0.3.8

func (x *Info) ClearGoVersion()

func (*Info) ClearOs added in v0.3.8

func (x *Info) ClearOs()

func (*Info) ClearPlatform added in v0.3.8

func (x *Info) ClearPlatform()

func (*Info) ClearVersion added in v0.3.8

func (x *Info) ClearVersion()

func (*Info) GetArch added in v0.3.5

func (x *Info) GetArch() string

func (*Info) GetBuildTime added in v0.3.5

func (x *Info) GetBuildTime() string

func (*Info) GetBuild_ added in v0.3.8

func (x *Info) GetBuild_() []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) HasArch added in v0.3.8

func (x *Info) HasArch() bool

func (*Info) HasBuildTime added in v0.3.8

func (x *Info) HasBuildTime() bool

func (*Info) HasCommit added in v0.3.8

func (x *Info) HasCommit() bool

func (*Info) HasCompiler added in v0.3.8

func (x *Info) HasCompiler() bool

func (*Info) HasGoVersion added in v0.3.8

func (x *Info) HasGoVersion() bool

func (*Info) HasOs added in v0.3.8

func (x *Info) HasOs() bool

func (*Info) HasPlatform added in v0.3.8

func (x *Info) HasPlatform() bool

func (*Info) HasVersion added in v0.3.8

func (x *Info) HasVersion() bool

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) SetArch added in v0.3.8

func (x *Info) SetArch(v string)

func (*Info) SetBuildTime added in v0.3.8

func (x *Info) SetBuildTime(v string)

func (*Info) SetBuild_ added in v0.3.8

func (x *Info) SetBuild_(v []string)

func (*Info) SetCommit added in v0.3.8

func (x *Info) SetCommit(v string)

func (*Info) SetCompiler added in v0.3.8

func (x *Info) SetCompiler(v string)

func (*Info) SetGoVersion added in v0.3.8

func (x *Info) SetGoVersion(v string)

func (*Info) SetOs added in v0.3.8

func (x *Info) SetOs(v string)

func (*Info) SetPlatform added in v0.3.8

func (x *Info) SetPlatform(v string)

func (*Info) SetVersion added in v0.3.8

func (x *Info) SetVersion(v string)

func (*Info) String added in v0.3.5

func (x *Info) String() string

type Info_builder added in v0.3.8

type Info_builder struct {
	Version   *string
	Commit    *string
	BuildTime *string
	GoVersion *string
	Arch      *string
	Platform  *string
	Os        *string
	Compiler  *string
	Build_    []string
	// contains filtered or unexported fields
}

func (Info_builder) Build added in v0.3.8

func (b0 Info_builder) Build() *Info

type Platform added in v0.3.7

type Platform struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*Platform) ClearAndroidApp added in v0.3.8

func (x *Platform) ClearAndroidApp()

func (*Platform) GetAndroidApp added in v0.3.7

func (x *Platform) GetAndroidApp() bool

func (*Platform) HasAndroidApp added in v0.3.8

func (x *Platform) HasAndroidApp() bool

func (*Platform) ProtoMessage added in v0.3.7

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect added in v0.3.7

func (x *Platform) ProtoReflect() protoreflect.Message

func (*Platform) Reset added in v0.3.7

func (x *Platform) Reset()

func (*Platform) SetAndroidApp added in v0.3.8

func (x *Platform) SetAndroidApp(v bool)

func (*Platform) String added in v0.3.7

func (x *Platform) String() string

type Platform_builder added in v0.3.8

type Platform_builder struct {
	AndroidApp *bool
	// contains filtered or unexported fields
}

func (Platform_builder) Build added in v0.3.8

func (b0 Platform_builder) Build() *Platform

type Setting

type Setting struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*Setting) ClearAdvancedConfig added in v0.3.8

func (x *Setting) ClearAdvancedConfig()

func (*Setting) ClearBypass added in v0.3.8

func (x *Setting) ClearBypass()

func (*Setting) ClearConfigVersion added in v0.3.8

func (x *Setting) ClearConfigVersion()

func (*Setting) ClearDns added in v0.3.8

func (x *Setting) ClearDns()

func (*Setting) ClearIpv6 added in v0.3.8

func (x *Setting) ClearIpv6()

func (*Setting) ClearIpv6LocalAddrPreferUnicast added in v0.3.8

func (x *Setting) ClearIpv6LocalAddrPreferUnicast()

func (*Setting) ClearLogcat added in v0.3.8

func (x *Setting) ClearLogcat()

func (*Setting) ClearNetInterface added in v0.3.8

func (x *Setting) ClearNetInterface()

func (*Setting) ClearPlatform added in v0.3.8

func (x *Setting) ClearPlatform()

func (*Setting) ClearServer added in v0.3.8

func (x *Setting) ClearServer()

func (*Setting) ClearSystemProxy added in v0.3.8

func (x *Setting) ClearSystemProxy()

func (*Setting) GetAdvancedConfig added in v0.3.8

func (x *Setting) GetAdvancedConfig() *AdvancedConfig

func (*Setting) GetBypass

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

func (*Setting) GetConfigVersion added in v0.3.7

func (x *Setting) GetConfigVersion() *ConfigVersion

func (*Setting) GetDns

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

func (*Setting) GetIpv6

func (x *Setting) GetIpv6() bool

func (*Setting) GetIpv6LocalAddrPreferUnicast added in v0.3.7

func (x *Setting) GetIpv6LocalAddrPreferUnicast() bool

func (*Setting) GetLogcat

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

func (*Setting) GetNetInterface

func (x *Setting) GetNetInterface() string

func (*Setting) GetPlatform added in v0.3.7

func (x *Setting) GetPlatform() *Platform

func (*Setting) GetServer

func (x *Setting) GetServer() *listener.InboundConfig

func (*Setting) GetSystemProxy

func (x *Setting) GetSystemProxy() *SystemProxy

func (*Setting) HasAdvancedConfig added in v0.3.8

func (x *Setting) HasAdvancedConfig() bool

func (*Setting) HasBypass added in v0.3.8

func (x *Setting) HasBypass() bool

func (*Setting) HasConfigVersion added in v0.3.8

func (x *Setting) HasConfigVersion() bool

func (*Setting) HasDns added in v0.3.8

func (x *Setting) HasDns() bool

func (*Setting) HasIpv6 added in v0.3.8

func (x *Setting) HasIpv6() bool

func (*Setting) HasIpv6LocalAddrPreferUnicast added in v0.3.8

func (x *Setting) HasIpv6LocalAddrPreferUnicast() bool

func (*Setting) HasLogcat added in v0.3.8

func (x *Setting) HasLogcat() bool

func (*Setting) HasNetInterface added in v0.3.8

func (x *Setting) HasNetInterface() bool

func (*Setting) HasPlatform added in v0.3.8

func (x *Setting) HasPlatform() bool

func (*Setting) HasServer added in v0.3.8

func (x *Setting) HasServer() bool

func (*Setting) HasSystemProxy added in v0.3.8

func (x *Setting) HasSystemProxy() bool

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

func (x *Setting) ProtoReflect() protoreflect.Message

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) SetAdvancedConfig added in v0.3.8

func (x *Setting) SetAdvancedConfig(v *AdvancedConfig)

func (*Setting) SetBypass added in v0.3.8

func (x *Setting) SetBypass(v *bypass.Config)

func (*Setting) SetConfigVersion added in v0.3.8

func (x *Setting) SetConfigVersion(v *ConfigVersion)

func (*Setting) SetDns added in v0.3.8

func (x *Setting) SetDns(v *dns.DnsConfig)

func (*Setting) SetIpv6 added in v0.3.8

func (x *Setting) SetIpv6(v bool)

func (*Setting) SetIpv6LocalAddrPreferUnicast added in v0.3.8

func (x *Setting) SetIpv6LocalAddrPreferUnicast(v bool)

func (*Setting) SetLogcat added in v0.3.8

func (x *Setting) SetLogcat(v *log.Logcat)

func (*Setting) SetNetInterface added in v0.3.8

func (x *Setting) SetNetInterface(v string)

func (*Setting) SetPlatform added in v0.3.8

func (x *Setting) SetPlatform(v *Platform)

func (*Setting) SetServer added in v0.3.8

func (x *Setting) SetServer(v *listener.InboundConfig)

func (*Setting) SetSystemProxy added in v0.3.8

func (x *Setting) SetSystemProxy(v *SystemProxy)

func (*Setting) String

func (x *Setting) String() string

type Setting_builder added in v0.3.8

type Setting_builder struct {
	Ipv6                       *bool
	Ipv6LocalAddrPreferUnicast *bool
	// net_interface, eg: eth0
	NetInterface   *string
	SystemProxy    *SystemProxy
	Bypass         *bypass.Config
	Dns            *dns.DnsConfig
	Server         *listener.InboundConfig
	Logcat         *log.Logcat
	ConfigVersion  *ConfigVersion
	Platform       *Platform
	AdvancedConfig *AdvancedConfig
	// contains filtered or unexported fields
}

func (Setting_builder) Build added in v0.3.8

func (b0 Setting_builder) Build() *Setting

type SystemProxy

type SystemProxy struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*SystemProxy) ClearHttp added in v0.3.8

func (x *SystemProxy) ClearHttp()

func (*SystemProxy) ClearSocks5 added in v0.3.8

func (x *SystemProxy) ClearSocks5()

func (*SystemProxy) GetHttp

func (x *SystemProxy) GetHttp() bool

func (*SystemProxy) GetSocks5

func (x *SystemProxy) GetSocks5() bool

func (*SystemProxy) HasHttp added in v0.3.8

func (x *SystemProxy) HasHttp() bool

func (*SystemProxy) HasSocks5 added in v0.3.8

func (x *SystemProxy) HasSocks5() 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) SetHttp added in v0.3.8

func (x *SystemProxy) SetHttp(v bool)

func (*SystemProxy) SetSocks5 added in v0.3.8

func (x *SystemProxy) SetSocks5(v bool)

func (*SystemProxy) String

func (x *SystemProxy) String() string

type SystemProxy_builder added in v0.3.8

type SystemProxy_builder struct {
	Http   *bool
	Socks5 *bool
	// contains filtered or unexported fields
}

func (SystemProxy_builder) Build added in v0.3.8

func (b0 SystemProxy_builder) Build() *SystemProxy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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