appctlpb

package
v3.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "IDLE",
		2: "STARTING",
		3: "RUNNING",
		4: "STOPPING",
	}
	AppStatus_value = map[string]int32{
		"UNKNOWN":  0,
		"IDLE":     1,
		"STARTING": 2,
		"RUNNING":  3,
		"STOPPING": 4,
	}
)

Enum value maps for AppStatus.

View Source
var (
	LoggingLevel_name = map[int32]string{
		0: "DEFAULT",
		1: "FATAL",
		2: "ERROR",
		3: "WARN",
		4: "INFO",
		5: "DEBUG",
		6: "TRACE",
	}
	LoggingLevel_value = map[string]int32{
		"DEFAULT": 0,
		"FATAL":   1,
		"ERROR":   2,
		"WARN":    3,
		"INFO":    4,
		"DEBUG":   5,
		"TRACE":   6,
	}
)

Enum value maps for LoggingLevel.

View Source
var (
	TransportProtocol_name = map[int32]string{
		0: "UNKNOWN_TRANSPORT_PROTOCOL",
		1: "UDP",
		2: "TCP",
	}
	TransportProtocol_value = map[string]int32{
		"UNKNOWN_TRANSPORT_PROTOCOL": 0,
		"UDP":                        1,
		"TCP":                        2,
	}
)

Enum value maps for TransportProtocol.

View Source
var (
	MultiplexingLevel_name = map[int32]string{
		0: "MULTIPLEXING_DEFAULT",
		1: "MULTIPLEXING_OFF",
		2: "MULTIPLEXING_LOW",
		3: "MULTIPLEXING_MIDDLE",
		4: "MULTIPLEXING_HIGH",
	}
	MultiplexingLevel_value = map[string]int32{
		"MULTIPLEXING_DEFAULT": 0,
		"MULTIPLEXING_OFF":     1,
		"MULTIPLEXING_LOW":     2,
		"MULTIPLEXING_MIDDLE":  3,
		"MULTIPLEXING_HIGH":    4,
	}
)

Enum value maps for MultiplexingLevel.

View Source
var (
	ProxyProtocol_name = map[int32]string{
		0: "UNKNOWN_PROXY_PROTOCOL",
		1: "SOCKS5_PROXY_PROTOCOL",
	}
	ProxyProtocol_value = map[string]int32{
		"UNKNOWN_PROXY_PROTOCOL": 0,
		"SOCKS5_PROXY_PROTOCOL":  1,
	}
)

Enum value maps for ProxyProtocol.

View Source
var (
	EgressAction_name = map[int32]string{
		0: "PROXY",
		1: "DIRECT",
		2: "REJECT",
	}
	EgressAction_value = map[string]int32{
		"PROXY":  0,
		"DIRECT": 1,
		"REJECT": 2,
	}
)

Enum value maps for EgressAction.

View Source
var File_clientcfg_proto protoreflect.FileDescriptor
View Source
var File_servercfg_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppStatus

type AppStatus int32
const (
	AppStatus_UNKNOWN AppStatus = 0
	// RPC service is available, but proxy is not started.
	AppStatus_IDLE AppStatus = 1
	// Proxy is starting.
	AppStatus_STARTING AppStatus = 2
	// Proxy is running.
	AppStatus_RUNNING AppStatus = 3
	// Proxy is being stopped.
	AppStatus_STOPPING AppStatus = 4
)

func (AppStatus) Descriptor

func (AppStatus) Descriptor() protoreflect.EnumDescriptor

func (AppStatus) Enum

func (x AppStatus) Enum() *AppStatus

func (AppStatus) EnumDescriptor deprecated

func (AppStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AppStatus.Descriptor instead.

func (AppStatus) Number

func (x AppStatus) Number() protoreflect.EnumNumber

func (AppStatus) String

func (x AppStatus) String() string

func (AppStatus) Type

type AppStatusMsg

type AppStatusMsg struct {
	Status *AppStatus `protobuf:"varint,1,opt,name=status,proto3,enum=appctl.AppStatus,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AppStatusMsg) Descriptor deprecated

func (*AppStatusMsg) Descriptor() ([]byte, []int)

Deprecated: Use AppStatusMsg.ProtoReflect.Descriptor instead.

func (*AppStatusMsg) GetStatus

func (x *AppStatusMsg) GetStatus() AppStatus

func (*AppStatusMsg) ProtoMessage

func (*AppStatusMsg) ProtoMessage()

func (*AppStatusMsg) ProtoReflect

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

func (*AppStatusMsg) Reset

func (x *AppStatusMsg) Reset()

func (*AppStatusMsg) String

func (x *AppStatusMsg) String() string

type Auth

type Auth struct {

	// Username used for authentication.
	User *string `protobuf:"bytes,1,opt,name=user,proto3,oneof" json:"user,omitempty"`
	// Password used for authentication.
	Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

func (*Auth) Descriptor() ([]byte, []int)

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetPassword

func (x *Auth) GetPassword() string

func (*Auth) GetUser

func (x *Auth) GetUser() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

type ClientAdvancedSettings

type ClientAdvancedSettings struct {
	// contains filtered or unexported fields
}

func (*ClientAdvancedSettings) Descriptor deprecated

func (*ClientAdvancedSettings) Descriptor() ([]byte, []int)

Deprecated: Use ClientAdvancedSettings.ProtoReflect.Descriptor instead.

func (*ClientAdvancedSettings) ProtoMessage

func (*ClientAdvancedSettings) ProtoMessage()

func (*ClientAdvancedSettings) ProtoReflect

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

func (*ClientAdvancedSettings) Reset

func (x *ClientAdvancedSettings) Reset()

func (*ClientAdvancedSettings) String

func (x *ClientAdvancedSettings) String() string

type ClientConfig

type ClientConfig struct {

	// A list of known client profiles.
	Profiles []*ClientProfile `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
	// The active profile name.
	ActiveProfile *string `protobuf:"bytes,2,opt,name=activeProfile,proto3,oneof" json:"activeProfile,omitempty"`
	// The management RPC port that client is listening in localhost.
	RpcPort *int32 `protobuf:"varint,3,opt,name=rpcPort,proto3,oneof" json:"rpcPort,omitempty"`
	// The socks5 port that mieru is listening.
	Socks5Port *int32 `protobuf:"varint,4,opt,name=socks5Port,proto3,oneof" json:"socks5Port,omitempty"`
	// Client advanced settings.
	AdvancedSettings *ClientAdvancedSettings `protobuf:"bytes,5,opt,name=advancedSettings,proto3,oneof" json:"advancedSettings,omitempty"`
	// Client logging level.
	LoggingLevel *LoggingLevel `protobuf:"varint,6,opt,name=loggingLevel,proto3,enum=appctl.LoggingLevel,oneof" json:"loggingLevel,omitempty"`
	// If set, the socks5 port listens to LAN rather than localhost.
	Socks5ListenLAN *bool `protobuf:"varint,7,opt,name=socks5ListenLAN,proto3,oneof" json:"socks5ListenLAN,omitempty"`
	// The port mieru is listening to provide HTTP / HTTPS proxy.
	HttpProxyPort *int32 `protobuf:"varint,8,opt,name=httpProxyPort,proto3,oneof" json:"httpProxyPort,omitempty"`
	// If set, the HTTP proxy port listens to LAN rather than localhost.
	HttpProxyListenLAN *bool `protobuf:"varint,9,opt,name=httpProxyListenLAN,proto3,oneof" json:"httpProxyListenLAN,omitempty"`
	// A list of accounts that can authenticate mieru socks5 proxy service.
	// If the list is empty, authentication is not required.
	Socks5Authentication []*Auth `protobuf:"bytes,10,rep,name=socks5Authentication,proto3" json:"socks5Authentication,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientConfig) Descriptor deprecated

func (*ClientConfig) Descriptor() ([]byte, []int)

Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.

func (*ClientConfig) GetActiveProfile

func (x *ClientConfig) GetActiveProfile() string

func (*ClientConfig) GetAdvancedSettings

func (x *ClientConfig) GetAdvancedSettings() *ClientAdvancedSettings

func (*ClientConfig) GetHttpProxyListenLAN

func (x *ClientConfig) GetHttpProxyListenLAN() bool

func (*ClientConfig) GetHttpProxyPort

func (x *ClientConfig) GetHttpProxyPort() int32

func (*ClientConfig) GetLoggingLevel

func (x *ClientConfig) GetLoggingLevel() LoggingLevel

func (*ClientConfig) GetProfiles

func (x *ClientConfig) GetProfiles() []*ClientProfile

func (*ClientConfig) GetRpcPort

func (x *ClientConfig) GetRpcPort() int32

func (*ClientConfig) GetSocks5Authentication

func (x *ClientConfig) GetSocks5Authentication() []*Auth

func (*ClientConfig) GetSocks5ListenLAN

func (x *ClientConfig) GetSocks5ListenLAN() bool

func (*ClientConfig) GetSocks5Port

func (x *ClientConfig) GetSocks5Port() int32

func (*ClientConfig) ProtoMessage

func (*ClientConfig) ProtoMessage()

func (*ClientConfig) ProtoReflect

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

func (*ClientConfig) Reset

func (x *ClientConfig) Reset()

func (*ClientConfig) String

func (x *ClientConfig) String() string

type ClientProfile

type ClientProfile struct {

	// Client profile name.
	ProfileName *string `protobuf:"bytes,1,opt,name=profileName,proto3,oneof" json:"profileName,omitempty"`
	// User information.
	User *User `protobuf:"bytes,2,opt,name=user,proto3,oneof" json:"user,omitempty"`
	// A list of servers to connect.
	Servers []*ServerEndpoint `protobuf:"bytes,3,rep,name=servers,proto3" json:"servers,omitempty"`
	// Maximum transmission unit of L2 payload.
	// This setting only applies to UDP protocol egress traffic.
	Mtu *int32 `protobuf:"varint,4,opt,name=mtu,proto3,oneof" json:"mtu,omitempty"`
	// Multiplexing behaviors.
	Multiplexing *MultiplexingConfig `protobuf:"bytes,5,opt,name=multiplexing,proto3,oneof" json:"multiplexing,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientProfile) Descriptor deprecated

func (*ClientProfile) Descriptor() ([]byte, []int)

Deprecated: Use ClientProfile.ProtoReflect.Descriptor instead.

func (*ClientProfile) GetMtu

func (x *ClientProfile) GetMtu() int32

func (*ClientProfile) GetMultiplexing

func (x *ClientProfile) GetMultiplexing() *MultiplexingConfig

func (*ClientProfile) GetProfileName

func (x *ClientProfile) GetProfileName() string

func (*ClientProfile) GetServers

func (x *ClientProfile) GetServers() []*ServerEndpoint

func (*ClientProfile) GetUser

func (x *ClientProfile) GetUser() *User

func (*ClientProfile) ProtoMessage

func (*ClientProfile) ProtoMessage()

func (*ClientProfile) ProtoReflect

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

func (*ClientProfile) Reset

func (x *ClientProfile) Reset()

func (*ClientProfile) String

func (x *ClientProfile) String() string

type Egress

type Egress struct {

	// A list of proxies.
	Proxies []*EgressProxy `protobuf:"bytes,1,rep,name=proxies,proto3" json:"proxies,omitempty"`
	// A list of rules.
	// If no rule is matched, the default action is DIRECT.
	Rules []*EgressRule `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

func (*Egress) Descriptor deprecated

func (*Egress) Descriptor() ([]byte, []int)

Deprecated: Use Egress.ProtoReflect.Descriptor instead.

func (*Egress) GetProxies

func (x *Egress) GetProxies() []*EgressProxy

func (*Egress) GetRules

func (x *Egress) GetRules() []*EgressRule

func (*Egress) ProtoMessage

func (*Egress) ProtoMessage()

func (*Egress) ProtoReflect

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

func (*Egress) Reset

func (x *Egress) Reset()

func (*Egress) String

func (x *Egress) String() string

type EgressAction

type EgressAction int32
const (
	// Use proxy to connect to the destination.
	EgressAction_PROXY EgressAction = 0
	// Directly connect to the destination.
	EgressAction_DIRECT EgressAction = 1
	// Do not connect to the destination.
	EgressAction_REJECT EgressAction = 2
)

func (EgressAction) Descriptor

func (EgressAction) Enum

func (x EgressAction) Enum() *EgressAction

func (EgressAction) EnumDescriptor deprecated

func (EgressAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use EgressAction.Descriptor instead.

func (EgressAction) Number

func (EgressAction) String

func (x EgressAction) String() string

func (EgressAction) Type

type EgressProxy

type EgressProxy struct {
	Name     *string        `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Protocol *ProxyProtocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=appctl.ProxyProtocol,oneof" json:"protocol,omitempty"`
	// Proxy IP address or domain name.
	Host *string `protobuf:"bytes,3,opt,name=host,proto3,oneof" json:"host,omitempty"`
	// Proxy port number.
	Port *int32 `protobuf:"varint,4,opt,name=port,proto3,oneof" json:"port,omitempty"`
	// Credential to authenticate egress socks5 proxy.
	// If the proxy protocol is not socks5, this is ignored.
	Socks5Authentication *Auth `protobuf:"bytes,5,opt,name=socks5Authentication,proto3,oneof" json:"socks5Authentication,omitempty"`
	// contains filtered or unexported fields
}

func (*EgressProxy) Descriptor deprecated

func (*EgressProxy) Descriptor() ([]byte, []int)

Deprecated: Use EgressProxy.ProtoReflect.Descriptor instead.

func (*EgressProxy) GetHost

func (x *EgressProxy) GetHost() string

func (*EgressProxy) GetName

func (x *EgressProxy) GetName() string

func (*EgressProxy) GetPort

func (x *EgressProxy) GetPort() int32

func (*EgressProxy) GetProtocol

func (x *EgressProxy) GetProtocol() ProxyProtocol

func (*EgressProxy) GetSocks5Authentication

func (x *EgressProxy) GetSocks5Authentication() *Auth

func (*EgressProxy) ProtoMessage

func (*EgressProxy) ProtoMessage()

func (*EgressProxy) ProtoReflect

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

func (*EgressProxy) Reset

func (x *EgressProxy) Reset()

func (*EgressProxy) String

func (x *EgressProxy) String() string

type EgressRule

type EgressRule struct {

	// A list of CIDR to match the rule.
	// Use "*" to match all IP addresses.
	IpRanges []string `protobuf:"bytes,1,rep,name=ipRanges,proto3" json:"ipRanges,omitempty"`
	// A list of domain names to match the rule.
	// Use "*" to match all domain names.
	DomainNames []string `protobuf:"bytes,2,rep,name=domainNames,proto3" json:"domainNames,omitempty"`
	// The action to do when the rule is matched.
	Action *EgressAction `protobuf:"varint,3,opt,name=action,proto3,enum=appctl.EgressAction,oneof" json:"action,omitempty"`
	// The name of proxy to connect.
	// This is required when the action is PROXY.
	ProxyName *string `protobuf:"bytes,4,opt,name=proxyName,proto3,oneof" json:"proxyName,omitempty"`
	// contains filtered or unexported fields
}

func (*EgressRule) Descriptor deprecated

func (*EgressRule) Descriptor() ([]byte, []int)

Deprecated: Use EgressRule.ProtoReflect.Descriptor instead.

func (*EgressRule) GetAction

func (x *EgressRule) GetAction() EgressAction

func (*EgressRule) GetDomainNames

func (x *EgressRule) GetDomainNames() []string

func (*EgressRule) GetIpRanges

func (x *EgressRule) GetIpRanges() []string

func (*EgressRule) GetProxyName

func (x *EgressRule) GetProxyName() string

func (*EgressRule) ProtoMessage

func (*EgressRule) ProtoMessage()

func (*EgressRule) ProtoReflect

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

func (*EgressRule) Reset

func (x *EgressRule) Reset()

func (*EgressRule) String

func (x *EgressRule) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type LoggingLevel

type LoggingLevel int32
const (
	LoggingLevel_DEFAULT LoggingLevel = 0
	LoggingLevel_FATAL   LoggingLevel = 1
	LoggingLevel_ERROR   LoggingLevel = 2
	LoggingLevel_WARN    LoggingLevel = 3
	LoggingLevel_INFO    LoggingLevel = 4
	LoggingLevel_DEBUG   LoggingLevel = 5
	LoggingLevel_TRACE   LoggingLevel = 6
)

func (LoggingLevel) Descriptor

func (LoggingLevel) Enum

func (x LoggingLevel) Enum() *LoggingLevel

func (LoggingLevel) EnumDescriptor deprecated

func (LoggingLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LoggingLevel.Descriptor instead.

func (LoggingLevel) Number

func (LoggingLevel) String

func (x LoggingLevel) String() string

func (LoggingLevel) Type

type MemoryStatistics

type MemoryStatistics struct {

	// JSON dump of memory statistics.
	Json *string `protobuf:"bytes,1,opt,name=json,proto3,oneof" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*MemoryStatistics) Descriptor deprecated

func (*MemoryStatistics) Descriptor() ([]byte, []int)

Deprecated: Use MemoryStatistics.ProtoReflect.Descriptor instead.

func (*MemoryStatistics) GetJson

func (x *MemoryStatistics) GetJson() string

func (*MemoryStatistics) ProtoMessage

func (*MemoryStatistics) ProtoMessage()

func (*MemoryStatistics) ProtoReflect

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

func (*MemoryStatistics) Reset

func (x *MemoryStatistics) Reset()

func (*MemoryStatistics) String

func (x *MemoryStatistics) String() string

type Metrics

type Metrics struct {

	// JSON dump of metrics.
	Json *string `protobuf:"bytes,1,opt,name=json,proto3,oneof" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*Metrics) Descriptor deprecated

func (*Metrics) Descriptor() ([]byte, []int)

Deprecated: Use Metrics.ProtoReflect.Descriptor instead.

func (*Metrics) GetJson

func (x *Metrics) GetJson() string

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) ProtoReflect

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

func (*Metrics) Reset

func (x *Metrics) Reset()

func (*Metrics) String

func (x *Metrics) String() string

type MultiplexingConfig

type MultiplexingConfig struct {

	// How frequent a network connection is reused.
	Level *MultiplexingLevel `protobuf:"varint,1,opt,name=level,proto3,enum=appctl.MultiplexingLevel,oneof" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiplexingConfig) Descriptor deprecated

func (*MultiplexingConfig) Descriptor() ([]byte, []int)

Deprecated: Use MultiplexingConfig.ProtoReflect.Descriptor instead.

func (*MultiplexingConfig) GetLevel

func (x *MultiplexingConfig) GetLevel() MultiplexingLevel

func (*MultiplexingConfig) ProtoMessage

func (*MultiplexingConfig) ProtoMessage()

func (*MultiplexingConfig) ProtoReflect

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

func (*MultiplexingConfig) Reset

func (x *MultiplexingConfig) Reset()

func (*MultiplexingConfig) String

func (x *MultiplexingConfig) String() string

type MultiplexingLevel

type MultiplexingLevel int32
const (
	MultiplexingLevel_MULTIPLEXING_DEFAULT MultiplexingLevel = 0
	MultiplexingLevel_MULTIPLEXING_OFF     MultiplexingLevel = 1
	MultiplexingLevel_MULTIPLEXING_LOW     MultiplexingLevel = 2
	MultiplexingLevel_MULTIPLEXING_MIDDLE  MultiplexingLevel = 3
	MultiplexingLevel_MULTIPLEXING_HIGH    MultiplexingLevel = 4
)

func (MultiplexingLevel) Descriptor

func (MultiplexingLevel) Enum

func (MultiplexingLevel) EnumDescriptor deprecated

func (MultiplexingLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use MultiplexingLevel.Descriptor instead.

func (MultiplexingLevel) Number

func (MultiplexingLevel) String

func (x MultiplexingLevel) String() string

func (MultiplexingLevel) Type

type PortBinding

type PortBinding struct {

	// A single port number.
	// This field can't be set with portRange at the same time.
	Port     *int32             `protobuf:"varint,1,opt,name=port,proto3,oneof" json:"port,omitempty"`
	Protocol *TransportProtocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=appctl.TransportProtocol,oneof" json:"protocol,omitempty"`
	// A port number range.
	// For example, "8000-9000" contains 1001 ports from 8000 to 9000.
	// This field can't be set with port at the same time.
	PortRange *string `protobuf:"bytes,3,opt,name=portRange,proto3,oneof" json:"portRange,omitempty"`
	// contains filtered or unexported fields
}

func (*PortBinding) Descriptor deprecated

func (*PortBinding) Descriptor() ([]byte, []int)

Deprecated: Use PortBinding.ProtoReflect.Descriptor instead.

func (*PortBinding) GetPort

func (x *PortBinding) GetPort() int32

func (*PortBinding) GetPortRange

func (x *PortBinding) GetPortRange() string

func (*PortBinding) GetProtocol

func (x *PortBinding) GetProtocol() TransportProtocol

func (*PortBinding) ProtoMessage

func (*PortBinding) ProtoMessage()

func (*PortBinding) ProtoReflect

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

func (*PortBinding) Reset

func (x *PortBinding) Reset()

func (*PortBinding) String

func (x *PortBinding) String() string

type ProfileSavePath

type ProfileSavePath struct {

	// Location to save profile results.
	FilePath *string `protobuf:"bytes,1,opt,name=filePath,proto3,oneof" json:"filePath,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileSavePath) Descriptor deprecated

func (*ProfileSavePath) Descriptor() ([]byte, []int)

Deprecated: Use ProfileSavePath.ProtoReflect.Descriptor instead.

func (*ProfileSavePath) GetFilePath

func (x *ProfileSavePath) GetFilePath() string

func (*ProfileSavePath) ProtoMessage

func (*ProfileSavePath) ProtoMessage()

func (*ProfileSavePath) ProtoReflect

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

func (*ProfileSavePath) Reset

func (x *ProfileSavePath) Reset()

func (*ProfileSavePath) String

func (x *ProfileSavePath) String() string

type ProxyProtocol

type ProxyProtocol int32
const (
	ProxyProtocol_UNKNOWN_PROXY_PROTOCOL ProxyProtocol = 0
	ProxyProtocol_SOCKS5_PROXY_PROTOCOL  ProxyProtocol = 1
)

func (ProxyProtocol) Descriptor

func (ProxyProtocol) Enum

func (x ProxyProtocol) Enum() *ProxyProtocol

func (ProxyProtocol) EnumDescriptor deprecated

func (ProxyProtocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProxyProtocol.Descriptor instead.

func (ProxyProtocol) Number

func (ProxyProtocol) String

func (x ProxyProtocol) String() string

func (ProxyProtocol) Type

type Quota

type Quota struct {

	// Number of days to renew the quota.
	// The renew is rolling based.
	Days *int32 `protobuf:"varint,1,opt,name=days,proto3,oneof" json:"days,omitempty"`
	// Number of megabytes the user allowed to send and receive.
	Megabytes *int32 `protobuf:"varint,2,opt,name=megabytes,proto3,oneof" json:"megabytes,omitempty"`
	// contains filtered or unexported fields
}

func (*Quota) Descriptor deprecated

func (*Quota) Descriptor() ([]byte, []int)

Deprecated: Use Quota.ProtoReflect.Descriptor instead.

func (*Quota) GetDays

func (x *Quota) GetDays() int32

func (*Quota) GetMegabytes

func (x *Quota) GetMegabytes() int32

func (*Quota) ProtoMessage

func (*Quota) ProtoMessage()

func (*Quota) ProtoReflect

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

func (*Quota) Reset

func (x *Quota) Reset()

func (*Quota) String

func (x *Quota) String() string

type ServerAdvancedSettings

type ServerAdvancedSettings struct {

	// Allow using socks5 to access resources served in localhost.
	// This option should be set to false unless required due to testing purpose.
	AllowLocalDestination *bool `protobuf:"varint,1,opt,name=allowLocalDestination,proto3,oneof" json:"allowLocalDestination,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerAdvancedSettings) Descriptor deprecated

func (*ServerAdvancedSettings) Descriptor() ([]byte, []int)

Deprecated: Use ServerAdvancedSettings.ProtoReflect.Descriptor instead.

func (*ServerAdvancedSettings) GetAllowLocalDestination

func (x *ServerAdvancedSettings) GetAllowLocalDestination() bool

func (*ServerAdvancedSettings) ProtoMessage

func (*ServerAdvancedSettings) ProtoMessage()

func (*ServerAdvancedSettings) ProtoReflect

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

func (*ServerAdvancedSettings) Reset

func (x *ServerAdvancedSettings) Reset()

func (*ServerAdvancedSettings) String

func (x *ServerAdvancedSettings) String() string

type ServerConfig

type ServerConfig struct {

	// Server's port-protocol bindings.
	PortBindings []*PortBinding `protobuf:"bytes,1,rep,name=portBindings,proto3" json:"portBindings,omitempty"`
	// A list of registered users.
	Users []*User `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
	// Server advanced settings.
	AdvancedSettings *ServerAdvancedSettings `protobuf:"bytes,3,opt,name=advancedSettings,proto3,oneof" json:"advancedSettings,omitempty"`
	// Server logging level.
	LoggingLevel *LoggingLevel `protobuf:"varint,4,opt,name=loggingLevel,proto3,enum=appctl.LoggingLevel,oneof" json:"loggingLevel,omitempty"`
	// Maximum transmission unit of L2 payload.
	// This setting only applies to UDP protocol egress traffic.
	Mtu *int32 `protobuf:"varint,5,opt,name=mtu,proto3,oneof" json:"mtu,omitempty"`
	// Egress proxies and rules.
	Egress *Egress `protobuf:"bytes,6,opt,name=egress,proto3,oneof" json:"egress,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerConfig) Descriptor deprecated

func (*ServerConfig) Descriptor() ([]byte, []int)

Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.

func (*ServerConfig) GetAdvancedSettings

func (x *ServerConfig) GetAdvancedSettings() *ServerAdvancedSettings

func (*ServerConfig) GetEgress

func (x *ServerConfig) GetEgress() *Egress

func (*ServerConfig) GetLoggingLevel

func (x *ServerConfig) GetLoggingLevel() LoggingLevel

func (*ServerConfig) GetMtu

func (x *ServerConfig) GetMtu() int32

func (*ServerConfig) GetPortBindings

func (x *ServerConfig) GetPortBindings() []*PortBinding

func (*ServerConfig) GetUsers

func (x *ServerConfig) GetUsers() []*User

func (*ServerConfig) ProtoMessage

func (*ServerConfig) ProtoMessage()

func (*ServerConfig) ProtoReflect

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

func (*ServerConfig) Reset

func (x *ServerConfig) Reset()

func (*ServerConfig) String

func (x *ServerConfig) String() string

type ServerEndpoint

type ServerEndpoint struct {

	// String representation of IP address.
	// It can be either IPv4 or IPv6.
	IpAddress *string `protobuf:"bytes,1,opt,name=ipAddress,proto3,oneof" json:"ipAddress,omitempty"`
	// Server's full qualified domain name.
	// When this is set, the `ipAddress` field is ignored.
	DomainName *string `protobuf:"bytes,2,opt,name=domainName,proto3,oneof" json:"domainName,omitempty"`
	// Server's port-protocol bindings.
	PortBindings []*PortBinding `protobuf:"bytes,3,rep,name=portBindings,proto3" json:"portBindings,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerEndpoint) Descriptor deprecated

func (*ServerEndpoint) Descriptor() ([]byte, []int)

Deprecated: Use ServerEndpoint.ProtoReflect.Descriptor instead.

func (*ServerEndpoint) GetDomainName

func (x *ServerEndpoint) GetDomainName() string

func (*ServerEndpoint) GetIpAddress

func (x *ServerEndpoint) GetIpAddress() string

func (*ServerEndpoint) GetPortBindings

func (x *ServerEndpoint) GetPortBindings() []*PortBinding

func (*ServerEndpoint) ProtoMessage

func (*ServerEndpoint) ProtoMessage()

func (*ServerEndpoint) ProtoReflect

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

func (*ServerEndpoint) Reset

func (x *ServerEndpoint) Reset()

func (*ServerEndpoint) String

func (x *ServerEndpoint) String() string

type SessionInfo

type SessionInfo struct {

	// Table of sessions.
	Table []string `protobuf:"bytes,1,rep,name=table,proto3" json:"table,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionInfo) Descriptor deprecated

func (*SessionInfo) Descriptor() ([]byte, []int)

Deprecated: Use SessionInfo.ProtoReflect.Descriptor instead.

func (*SessionInfo) GetTable

func (x *SessionInfo) GetTable() []string

func (*SessionInfo) ProtoMessage

func (*SessionInfo) ProtoMessage()

func (*SessionInfo) ProtoReflect

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

func (*SessionInfo) Reset

func (x *SessionInfo) Reset()

func (*SessionInfo) String

func (x *SessionInfo) String() string

type ThreadDump

type ThreadDump struct {

	// Full thread dump of the application.
	ThreadDump *string `protobuf:"bytes,1,opt,name=threadDump,proto3,oneof" json:"threadDump,omitempty"`
	// contains filtered or unexported fields
}

func (*ThreadDump) Descriptor deprecated

func (*ThreadDump) Descriptor() ([]byte, []int)

Deprecated: Use ThreadDump.ProtoReflect.Descriptor instead.

func (*ThreadDump) GetThreadDump

func (x *ThreadDump) GetThreadDump() string

func (*ThreadDump) ProtoMessage

func (*ThreadDump) ProtoMessage()

func (*ThreadDump) ProtoReflect

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

func (*ThreadDump) Reset

func (x *ThreadDump) Reset()

func (*ThreadDump) String

func (x *ThreadDump) String() string

type TransportProtocol

type TransportProtocol int32
const (
	TransportProtocol_UNKNOWN_TRANSPORT_PROTOCOL TransportProtocol = 0
	TransportProtocol_UDP                        TransportProtocol = 1
	TransportProtocol_TCP                        TransportProtocol = 2
)

func (TransportProtocol) Descriptor

func (TransportProtocol) Enum

func (TransportProtocol) EnumDescriptor deprecated

func (TransportProtocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransportProtocol.Descriptor instead.

func (TransportProtocol) Number

func (TransportProtocol) String

func (x TransportProtocol) String() string

func (TransportProtocol) Type

type User

type User struct {

	// User name is also the ID of user.
	// Typically this is an email address.
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// Raw password.
	// For safety this shouldn't be persisted at the server side.
	Password *string `protobuf:"bytes,2,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// Hashed password.
	// Stored with hex encoding.
	HashedPassword *string `protobuf:"bytes,3,opt,name=hashedPassword,proto3,oneof" json:"hashedPassword,omitempty"`
	// User quotas.
	// This has no effect at the client side.
	Quotas []*Quota `protobuf:"bytes,4,rep,name=quotas,proto3" json:"quotas,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetHashedPassword

func (x *User) GetHashedPassword() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetQuotas

func (x *User) GetQuotas() []*Quota

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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