Documentation
¶
Index ¶
- Variables
- func DefaultConfigDir() (Path string)
- type AdvancedConfig
- func (x *AdvancedConfig) ClearRelayBufferSize()
- func (x *AdvancedConfig) ClearUdpBufferSize()
- func (x *AdvancedConfig) GetRelayBufferSize() int32
- func (x *AdvancedConfig) GetUdpBufferSize() int32
- func (x *AdvancedConfig) HasRelayBufferSize() bool
- func (x *AdvancedConfig) HasUdpBufferSize() bool
- func (*AdvancedConfig) ProtoMessage()
- func (x *AdvancedConfig) ProtoReflect() protoreflect.Message
- func (x *AdvancedConfig) Reset()
- func (x *AdvancedConfig) SetRelayBufferSize(v int32)
- func (x *AdvancedConfig) SetUdpBufferSize(v int32)
- func (x *AdvancedConfig) String() string
- type AdvancedConfig_builder
- type ConfigVersion
- func (x *ConfigVersion) ClearVersion()
- func (x *ConfigVersion) GetVersion() uint64
- func (x *ConfigVersion) HasVersion() bool
- func (*ConfigVersion) ProtoMessage()
- func (x *ConfigVersion) ProtoReflect() protoreflect.Message
- func (x *ConfigVersion) Reset()
- func (x *ConfigVersion) SetVersion(v uint64)
- func (x *ConfigVersion) String() string
- type ConfigVersion_builder
- type DB
- type Info
- func (x *Info) ClearArch()
- func (x *Info) ClearBuildTime()
- func (x *Info) ClearCommit()
- func (x *Info) ClearCompiler()
- func (x *Info) ClearGoVersion()
- func (x *Info) ClearOs()
- func (x *Info) ClearPlatform()
- func (x *Info) ClearVersion()
- func (x *Info) GetArch() string
- func (x *Info) GetBuildTime() string
- func (x *Info) GetBuild_() []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 (x *Info) HasArch() bool
- func (x *Info) HasBuildTime() bool
- func (x *Info) HasCommit() bool
- func (x *Info) HasCompiler() bool
- func (x *Info) HasGoVersion() bool
- func (x *Info) HasOs() bool
- func (x *Info) HasPlatform() bool
- func (x *Info) HasVersion() bool
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) SetArch(v string)
- func (x *Info) SetBuildTime(v string)
- func (x *Info) SetBuild_(v []string)
- func (x *Info) SetCommit(v string)
- func (x *Info) SetCompiler(v string)
- func (x *Info) SetGoVersion(v string)
- func (x *Info) SetOs(v string)
- func (x *Info) SetPlatform(v string)
- func (x *Info) SetVersion(v string)
- func (x *Info) String() string
- type Info_builder
- type Platform
- func (x *Platform) ClearAndroidApp()
- func (x *Platform) GetAndroidApp() bool
- func (x *Platform) HasAndroidApp() bool
- func (*Platform) ProtoMessage()
- func (x *Platform) ProtoReflect() protoreflect.Message
- func (x *Platform) Reset()
- func (x *Platform) SetAndroidApp(v bool)
- func (x *Platform) String() string
- type Platform_builder
- type Setting
- func (x *Setting) ClearAdvancedConfig()
- func (x *Setting) ClearBypass()
- func (x *Setting) ClearConfigVersion()
- func (x *Setting) ClearDns()
- func (x *Setting) ClearIpv6()
- func (x *Setting) ClearIpv6LocalAddrPreferUnicast()
- func (x *Setting) ClearLogcat()
- func (x *Setting) ClearNetInterface()
- func (x *Setting) ClearPlatform()
- func (x *Setting) ClearServer()
- func (x *Setting) ClearSystemProxy()
- func (x *Setting) GetAdvancedConfig() *AdvancedConfig
- func (x *Setting) GetBypass() *bypass.Config
- func (x *Setting) GetConfigVersion() *ConfigVersion
- func (x *Setting) GetDns() *dns.DnsConfig
- func (x *Setting) GetIpv6() bool
- func (x *Setting) GetIpv6LocalAddrPreferUnicast() bool
- func (x *Setting) GetLogcat() *log.Logcat
- func (x *Setting) GetNetInterface() string
- func (x *Setting) GetPlatform() *Platform
- func (x *Setting) GetServer() *listener.InboundConfig
- func (x *Setting) GetSystemProxy() *SystemProxy
- func (x *Setting) HasAdvancedConfig() bool
- func (x *Setting) HasBypass() bool
- func (x *Setting) HasConfigVersion() bool
- func (x *Setting) HasDns() bool
- func (x *Setting) HasIpv6() bool
- func (x *Setting) HasIpv6LocalAddrPreferUnicast() bool
- func (x *Setting) HasLogcat() bool
- func (x *Setting) HasNetInterface() bool
- func (x *Setting) HasPlatform() bool
- func (x *Setting) HasServer() bool
- func (x *Setting) HasSystemProxy() bool
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) SetAdvancedConfig(v *AdvancedConfig)
- func (x *Setting) SetBypass(v *bypass.Config)
- func (x *Setting) SetConfigVersion(v *ConfigVersion)
- func (x *Setting) SetDns(v *dns.DnsConfig)
- func (x *Setting) SetIpv6(v bool)
- func (x *Setting) SetIpv6LocalAddrPreferUnicast(v bool)
- func (x *Setting) SetLogcat(v *log.Logcat)
- func (x *Setting) SetNetInterface(v string)
- func (x *Setting) SetPlatform(v *Platform)
- func (x *Setting) SetServer(v *listener.InboundConfig)
- func (x *Setting) SetSystemProxy(v *SystemProxy)
- func (x *Setting) String() string
- type Setting_builder
- type SystemProxy
- func (x *SystemProxy) ClearHttp()
- func (x *SystemProxy) ClearSocks5()
- func (x *SystemProxy) GetHttp() bool
- func (x *SystemProxy) GetSocks5() bool
- func (x *SystemProxy) HasHttp() bool
- func (x *SystemProxy) HasSocks5() bool
- func (*SystemProxy) ProtoMessage()
- func (x *SystemProxy) ProtoReflect() protoreflect.Message
- func (x *SystemProxy) Reset()
- func (x *SystemProxy) SetHttp(v bool)
- func (x *SystemProxy) SetSocks5(v bool)
- func (x *SystemProxy) String() string
- type SystemProxy_builder
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
func (b0 AdvancedConfig_builder) Build() *AdvancedConfig
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
func (b0 ConfigVersion_builder) Build() *ConfigVersion
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) 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) ClearPlatform ¶ added in v0.3.8
func (x *Info) ClearPlatform()
func (*Info) ClearVersion ¶ added in v0.3.8
func (x *Info) ClearVersion()
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) HasBuildTime ¶ added in v0.3.8
func (*Info) HasCompiler ¶ added in v0.3.8
func (*Info) HasGoVersion ¶ added in v0.3.8
func (*Info) HasPlatform ¶ added in v0.3.8
func (*Info) HasVersion ¶ added in v0.3.8
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) SetBuildTime ¶ added in v0.3.8
func (*Info) SetCompiler ¶ added in v0.3.8
func (*Info) SetGoVersion ¶ added in v0.3.8
func (*Info) SetPlatform ¶ added in v0.3.8
func (*Info) SetVersion ¶ added in v0.3.8
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 (*Platform) HasAndroidApp ¶ added in v0.3.8
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) SetAndroidApp ¶ added in v0.3.8
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) 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) GetConfigVersion ¶ added in v0.3.7
func (x *Setting) GetConfigVersion() *ConfigVersion
func (*Setting) GetIpv6LocalAddrPreferUnicast ¶ added in v0.3.7
func (*Setting) GetNetInterface ¶
func (*Setting) GetPlatform ¶ added in v0.3.7
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 (*Setting) HasConfigVersion ¶ added in v0.3.8
func (*Setting) HasIpv6LocalAddrPreferUnicast ¶ added in v0.3.8
func (*Setting) HasNetInterface ¶ added in v0.3.8
func (*Setting) HasPlatform ¶ added in v0.3.8
func (*Setting) HasSystemProxy ¶ added in v0.3.8
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
func (*Setting) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
func (*Setting) SetAdvancedConfig ¶ added in v0.3.8
func (x *Setting) SetAdvancedConfig(v *AdvancedConfig)
func (*Setting) SetConfigVersion ¶ added in v0.3.8
func (x *Setting) SetConfigVersion(v *ConfigVersion)
func (*Setting) SetIpv6LocalAddrPreferUnicast ¶ added in v0.3.8
func (*Setting) SetNetInterface ¶ added in v0.3.8
func (*Setting) SetPlatform ¶ added in v0.3.8
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)
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
Click to show internal directories.
Click to hide internal directories.