appctlpb

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

View Source
const (
	ClientLifecycleService_GetStatus_FullMethodName       = "/appctl.ClientLifecycleService/GetStatus"
	ClientLifecycleService_Exit_FullMethodName            = "/appctl.ClientLifecycleService/Exit"
	ClientLifecycleService_GetThreadDump_FullMethodName   = "/appctl.ClientLifecycleService/GetThreadDump"
	ClientLifecycleService_StartCPUProfile_FullMethodName = "/appctl.ClientLifecycleService/StartCPUProfile"
	ClientLifecycleService_StopCPUProfile_FullMethodName  = "/appctl.ClientLifecycleService/StopCPUProfile"
	ClientLifecycleService_GetHeapProfile_FullMethodName  = "/appctl.ClientLifecycleService/GetHeapProfile"
)
View Source
const (
	ServerLifecycleService_GetStatus_FullMethodName       = "/appctl.ServerLifecycleService/GetStatus"
	ServerLifecycleService_Start_FullMethodName           = "/appctl.ServerLifecycleService/Start"
	ServerLifecycleService_Stop_FullMethodName            = "/appctl.ServerLifecycleService/Stop"
	ServerLifecycleService_Exit_FullMethodName            = "/appctl.ServerLifecycleService/Exit"
	ServerLifecycleService_GetThreadDump_FullMethodName   = "/appctl.ServerLifecycleService/GetThreadDump"
	ServerLifecycleService_StartCPUProfile_FullMethodName = "/appctl.ServerLifecycleService/StartCPUProfile"
	ServerLifecycleService_StopCPUProfile_FullMethodName  = "/appctl.ServerLifecycleService/StopCPUProfile"
	ServerLifecycleService_GetHeapProfile_FullMethodName  = "/appctl.ServerLifecycleService/GetHeapProfile"
)
View Source
const (
	ServerConfigService_GetConfig_FullMethodName = "/appctl.ServerConfigService/GetConfig"
	ServerConfigService_SetConfig_FullMethodName = "/appctl.ServerConfigService/SetConfig"
)

Variables

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 (
	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 ClientLifecycleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "appctl.ClientLifecycleService",
	HandlerType: (*ClientLifecycleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetStatus",
			Handler:    _ClientLifecycleService_GetStatus_Handler,
		},
		{
			MethodName: "Exit",
			Handler:    _ClientLifecycleService_Exit_Handler,
		},
		{
			MethodName: "GetThreadDump",
			Handler:    _ClientLifecycleService_GetThreadDump_Handler,
		},
		{
			MethodName: "StartCPUProfile",
			Handler:    _ClientLifecycleService_StartCPUProfile_Handler,
		},
		{
			MethodName: "StopCPUProfile",
			Handler:    _ClientLifecycleService_StopCPUProfile_Handler,
		},
		{
			MethodName: "GetHeapProfile",
			Handler:    _ClientLifecycleService_GetHeapProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lifecycle.proto",
}

ClientLifecycleService_ServiceDesc is the grpc.ServiceDesc for ClientLifecycleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_clientcfg_proto protoreflect.FileDescriptor
View Source
var File_debug_proto protoreflect.FileDescriptor
View Source
var File_empty_proto protoreflect.FileDescriptor
View Source
var File_endpoint_proto protoreflect.FileDescriptor
View Source
var File_lifecycle_proto protoreflect.FileDescriptor
View Source
var File_logging_proto protoreflect.FileDescriptor
View Source
var File_servercfg_proto protoreflect.FileDescriptor
View Source
var ServerConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "appctl.ServerConfigService",
	HandlerType: (*ServerConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetConfig",
			Handler:    _ServerConfigService_GetConfig_Handler,
		},
		{
			MethodName: "SetConfig",
			Handler:    _ServerConfigService_SetConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "servercfg.proto",
}

ServerConfigService_ServiceDesc is the grpc.ServiceDesc for ServerConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ServerLifecycleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "appctl.ServerLifecycleService",
	HandlerType: (*ServerLifecycleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetStatus",
			Handler:    _ServerLifecycleService_GetStatus_Handler,
		},
		{
			MethodName: "Start",
			Handler:    _ServerLifecycleService_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _ServerLifecycleService_Stop_Handler,
		},
		{
			MethodName: "Exit",
			Handler:    _ServerLifecycleService_Exit_Handler,
		},
		{
			MethodName: "GetThreadDump",
			Handler:    _ServerLifecycleService_GetThreadDump_Handler,
		},
		{
			MethodName: "StartCPUProfile",
			Handler:    _ServerLifecycleService_StartCPUProfile_Handler,
		},
		{
			MethodName: "StopCPUProfile",
			Handler:    _ServerLifecycleService_StopCPUProfile_Handler,
		},
		{
			MethodName: "GetHeapProfile",
			Handler:    _ServerLifecycleService_GetHeapProfile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lifecycle.proto",
}

ServerLifecycleService_ServiceDesc is the grpc.ServiceDesc for ServerLifecycleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterClientLifecycleServiceServer

func RegisterClientLifecycleServiceServer(s grpc.ServiceRegistrar, srv ClientLifecycleServiceServer)

func RegisterServerConfigServiceServer

func RegisterServerConfigServiceServer(s grpc.ServiceRegistrar, srv ServerConfigServiceServer)

func RegisterServerLifecycleServiceServer

func RegisterServerLifecycleServiceServer(s grpc.ServiceRegistrar, srv ServerLifecycleServiceServer)

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 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"`
	// 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 added in v1.11.0

func (x *ClientConfig) GetHttpProxyListenLAN() bool

func (*ClientConfig) GetHttpProxyPort added in v1.11.0

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) GetSocks5ListenLAN added in v1.7.0

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 ClientLifecycleServiceClient

type ClientLifecycleServiceClient interface {
	// Fetch client application status.
	GetStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*AppStatusMsg, error)
	// Quit client daemon.
	Exit(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Generate a thread dump of client daemon.
	GetThreadDump(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ThreadDump, error)
	// Start CPU profiling.
	StartCPUProfile(ctx context.Context, in *ProfileSavePath, opts ...grpc.CallOption) (*Empty, error)
	// Stop CPU profiling.
	StopCPUProfile(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Generate a heap profile.
	GetHeapProfile(ctx context.Context, in *ProfileSavePath, opts ...grpc.CallOption) (*Empty, error)
}

ClientLifecycleServiceClient is the client API for ClientLifecycleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ClientLifecycleServiceServer

type ClientLifecycleServiceServer interface {
	// Fetch client application status.
	GetStatus(context.Context, *Empty) (*AppStatusMsg, error)
	// Quit client daemon.
	Exit(context.Context, *Empty) (*Empty, error)
	// Generate a thread dump of client daemon.
	GetThreadDump(context.Context, *Empty) (*ThreadDump, error)
	// Start CPU profiling.
	StartCPUProfile(context.Context, *ProfileSavePath) (*Empty, error)
	// Stop CPU profiling.
	StopCPUProfile(context.Context, *Empty) (*Empty, error)
	// Generate a heap profile.
	GetHeapProfile(context.Context, *ProfileSavePath) (*Empty, error)
	// contains filtered or unexported methods
}

ClientLifecycleServiceServer is the server API for ClientLifecycleService service. All implementations must embed UnimplementedClientLifecycleServiceServer for forward compatibility

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.
	Mtu *int32 `protobuf:"varint,4,opt,name=mtu,proto3,oneof" json:"mtu,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientProfile) Descriptor deprecated

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

Deprecated: Use ClientProfile.ProtoReflect.Descriptor instead.

func (*ClientProfile) GetMtu added in v1.5.0

func (x *ClientProfile) GetMtu() int32

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 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 PortBinding

type PortBinding struct {
	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"`
	// 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) 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 added in v1.3.0

type ProfileSavePath struct {
	FilePath *string `protobuf:"bytes,1,opt,name=filePath,proto3,oneof" json:"filePath,omitempty"`
	// contains filtered or unexported fields
}

func (*ProfileSavePath) Descriptor deprecated added in v1.3.0

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

Deprecated: Use ProfileSavePath.ProtoReflect.Descriptor instead.

func (*ProfileSavePath) GetFilePath added in v1.3.0

func (x *ProfileSavePath) GetFilePath() string

func (*ProfileSavePath) ProtoMessage added in v1.3.0

func (*ProfileSavePath) ProtoMessage()

func (*ProfileSavePath) ProtoReflect added in v1.3.0

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

func (*ProfileSavePath) Reset added in v1.3.0

func (x *ProfileSavePath) Reset()

func (*ProfileSavePath) String added in v1.3.0

func (x *ProfileSavePath) 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.
	Mtu *int32 `protobuf:"varint,5,opt,name=mtu,proto3,oneof" json:"mtu,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) GetLoggingLevel

func (x *ServerConfig) GetLoggingLevel() LoggingLevel

func (*ServerConfig) GetMtu added in v1.5.0

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 ServerConfigServiceClient

type ServerConfigServiceClient interface {
	// Fetch the server config.
	GetConfig(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerConfig, error)
	// Update server config.
	SetConfig(ctx context.Context, in *ServerConfig, opts ...grpc.CallOption) (*ServerConfig, error)
}

ServerConfigServiceClient is the client API for ServerConfigService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ServerConfigServiceServer

type ServerConfigServiceServer interface {
	// Fetch the server config.
	GetConfig(context.Context, *Empty) (*ServerConfig, error)
	// Update server config.
	SetConfig(context.Context, *ServerConfig) (*ServerConfig, error)
	// contains filtered or unexported methods
}

ServerConfigServiceServer is the server API for ServerConfigService service. All implementations must embed UnimplementedServerConfigServiceServer for forward compatibility

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 ServerLifecycleServiceClient

type ServerLifecycleServiceClient interface {
	// Fetch server application status.
	GetStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*AppStatusMsg, error)
	// Start proxy in server application.
	Start(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Stop proxy in server application.
	Stop(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Quit server daemon.
	Exit(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Generate a thread dump of server daemon.
	GetThreadDump(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ThreadDump, error)
	// Start CPU profiling.
	StartCPUProfile(ctx context.Context, in *ProfileSavePath, opts ...grpc.CallOption) (*Empty, error)
	// Stop CPU profiling.
	StopCPUProfile(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	// Generate a heap profile.
	GetHeapProfile(ctx context.Context, in *ProfileSavePath, opts ...grpc.CallOption) (*Empty, error)
}

ServerLifecycleServiceClient is the client API for ServerLifecycleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ServerLifecycleServiceServer

type ServerLifecycleServiceServer interface {
	// Fetch server application status.
	GetStatus(context.Context, *Empty) (*AppStatusMsg, error)
	// Start proxy in server application.
	Start(context.Context, *Empty) (*Empty, error)
	// Stop proxy in server application.
	Stop(context.Context, *Empty) (*Empty, error)
	// Quit server daemon.
	Exit(context.Context, *Empty) (*Empty, error)
	// Generate a thread dump of server daemon.
	GetThreadDump(context.Context, *Empty) (*ThreadDump, error)
	// Start CPU profiling.
	StartCPUProfile(context.Context, *ProfileSavePath) (*Empty, error)
	// Stop CPU profiling.
	StopCPUProfile(context.Context, *Empty) (*Empty, error)
	// Generate a heap profile.
	GetHeapProfile(context.Context, *ProfileSavePath) (*Empty, error)
	// contains filtered or unexported methods
}

ServerLifecycleServiceServer is the server API for ServerLifecycleService service. All implementations must embed UnimplementedServerLifecycleServiceServer for forward compatibility

type ThreadDump

type ThreadDump struct {
	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 UnimplementedClientLifecycleServiceServer

type UnimplementedClientLifecycleServiceServer struct {
}

UnimplementedClientLifecycleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedClientLifecycleServiceServer) Exit

func (UnimplementedClientLifecycleServiceServer) GetHeapProfile added in v1.3.0

func (UnimplementedClientLifecycleServiceServer) GetStatus

func (UnimplementedClientLifecycleServiceServer) GetThreadDump

func (UnimplementedClientLifecycleServiceServer) StartCPUProfile added in v1.3.0

func (UnimplementedClientLifecycleServiceServer) StopCPUProfile added in v1.3.0

type UnimplementedServerConfigServiceServer

type UnimplementedServerConfigServiceServer struct {
}

UnimplementedServerConfigServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServerConfigServiceServer) GetConfig

func (UnimplementedServerConfigServiceServer) SetConfig

type UnimplementedServerLifecycleServiceServer

type UnimplementedServerLifecycleServiceServer struct {
}

UnimplementedServerLifecycleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServerLifecycleServiceServer) Exit

func (UnimplementedServerLifecycleServiceServer) GetHeapProfile added in v1.3.0

func (UnimplementedServerLifecycleServiceServer) GetStatus

func (UnimplementedServerLifecycleServiceServer) GetThreadDump

func (UnimplementedServerLifecycleServiceServer) Start

func (UnimplementedServerLifecycleServiceServer) StartCPUProfile added in v1.3.0

func (UnimplementedServerLifecycleServiceServer) Stop

func (UnimplementedServerLifecycleServiceServer) StopCPUProfile added in v1.3.0

type UnsafeClientLifecycleServiceServer

type UnsafeClientLifecycleServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeClientLifecycleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClientLifecycleServiceServer will result in compilation errors.

type UnsafeServerConfigServiceServer

type UnsafeServerConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServerConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerConfigServiceServer will result in compilation errors.

type UnsafeServerLifecycleServiceServer

type UnsafeServerLifecycleServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServerLifecycleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerLifecycleServiceServer will result in compilation errors.

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"`
	// 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) 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