controllerv1grpc

package
v1.3.0-20240421175249-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerGroupService_GetGroupsByType_FullMethodName   = "/simplecloud.controller.v1.ControllerGroupService/GetGroupsByType"
	ControllerGroupService_GetGroupByName_FullMethodName    = "/simplecloud.controller.v1.ControllerGroupService/GetGroupByName"
	ControllerGroupService_DeleteGroupByName_FullMethodName = "/simplecloud.controller.v1.ControllerGroupService/DeleteGroupByName"
	ControllerGroupService_CreateGroup_FullMethodName       = "/simplecloud.controller.v1.ControllerGroupService/CreateGroup"
	ControllerGroupService_UpdateGroup_FullMethodName       = "/simplecloud.controller.v1.ControllerGroupService/UpdateGroup"
	ControllerGroupService_GetAllGroups_FullMethodName      = "/simplecloud.controller.v1.ControllerGroupService/GetAllGroups"
)
View Source
const (
	ControllerServerService_GetAllServers_FullMethodName         = "/simplecloud.controller.v1.ControllerServerService/GetAllServers"
	ControllerServerService_GetServersByType_FullMethodName      = "/simplecloud.controller.v1.ControllerServerService/GetServersByType"
	ControllerServerService_GetServersByGroup_FullMethodName     = "/simplecloud.controller.v1.ControllerServerService/GetServersByGroup"
	ControllerServerService_GetServerByNumerical_FullMethodName  = "/simplecloud.controller.v1.ControllerServerService/GetServerByNumerical"
	ControllerServerService_GetServerById_FullMethodName         = "/simplecloud.controller.v1.ControllerServerService/GetServerById"
	ControllerServerService_StartServer_FullMethodName           = "/simplecloud.controller.v1.ControllerServerService/StartServer"
	ControllerServerService_StopServer_FullMethodName            = "/simplecloud.controller.v1.ControllerServerService/StopServer"
	ControllerServerService_StopServerByNumerical_FullMethodName = "/simplecloud.controller.v1.ControllerServerService/StopServerByNumerical"
	ControllerServerService_UpdateServer_FullMethodName          = "/simplecloud.controller.v1.ControllerServerService/UpdateServer"
	ControllerServerService_UpdateServerState_FullMethodName     = "/simplecloud.controller.v1.ControllerServerService/UpdateServerState"
	ControllerServerService_UpdateServerProperty_FullMethodName  = "/simplecloud.controller.v1.ControllerServerService/UpdateServerProperty"
	ControllerServerService_AttachServerHost_FullMethodName      = "/simplecloud.controller.v1.ControllerServerService/AttachServerHost"
)
View Source
const (
	ServerHostService_StartServer_FullMethodName    = "/simplecloud.controller.v1.ServerHostService/StartServer"
	ServerHostService_StopServer_FullMethodName     = "/simplecloud.controller.v1.ServerHostService/StopServer"
	ServerHostService_ReattachServer_FullMethodName = "/simplecloud.controller.v1.ServerHostService/ReattachServer"
)

Variables

View Source
var ControllerGroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "simplecloud.controller.v1.ControllerGroupService",
	HandlerType: (*ControllerGroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGroupsByType",
			Handler:    _ControllerGroupService_GetGroupsByType_Handler,
		},
		{
			MethodName: "GetGroupByName",
			Handler:    _ControllerGroupService_GetGroupByName_Handler,
		},
		{
			MethodName: "DeleteGroupByName",
			Handler:    _ControllerGroupService_DeleteGroupByName_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _ControllerGroupService_CreateGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _ControllerGroupService_UpdateGroup_Handler,
		},
		{
			MethodName: "GetAllGroups",
			Handler:    _ControllerGroupService_GetAllGroups_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "simplecloud/controller/v1/controller_group_api.proto",
}

ControllerGroupService_ServiceDesc is the grpc.ServiceDesc for ControllerGroupService 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 ControllerServerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "simplecloud.controller.v1.ControllerServerService",
	HandlerType: (*ControllerServerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAllServers",
			Handler:    _ControllerServerService_GetAllServers_Handler,
		},
		{
			MethodName: "GetServersByType",
			Handler:    _ControllerServerService_GetServersByType_Handler,
		},
		{
			MethodName: "GetServersByGroup",
			Handler:    _ControllerServerService_GetServersByGroup_Handler,
		},
		{
			MethodName: "GetServerByNumerical",
			Handler:    _ControllerServerService_GetServerByNumerical_Handler,
		},
		{
			MethodName: "GetServerById",
			Handler:    _ControllerServerService_GetServerById_Handler,
		},
		{
			MethodName: "StartServer",
			Handler:    _ControllerServerService_StartServer_Handler,
		},
		{
			MethodName: "StopServer",
			Handler:    _ControllerServerService_StopServer_Handler,
		},
		{
			MethodName: "StopServerByNumerical",
			Handler:    _ControllerServerService_StopServerByNumerical_Handler,
		},
		{
			MethodName: "UpdateServer",
			Handler:    _ControllerServerService_UpdateServer_Handler,
		},
		{
			MethodName: "UpdateServerState",
			Handler:    _ControllerServerService_UpdateServerState_Handler,
		},
		{
			MethodName: "UpdateServerProperty",
			Handler:    _ControllerServerService_UpdateServerProperty_Handler,
		},
		{
			MethodName: "AttachServerHost",
			Handler:    _ControllerServerService_AttachServerHost_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "simplecloud/controller/v1/controller_server_api.proto",
}

ControllerServerService_ServiceDesc is the grpc.ServiceDesc for ControllerServerService 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 ServerHostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "simplecloud.controller.v1.ServerHostService",
	HandlerType: (*ServerHostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartServer",
			Handler:    _ServerHostService_StartServer_Handler,
		},
		{
			MethodName: "StopServer",
			Handler:    _ServerHostService_StopServer_Handler,
		},
		{
			MethodName: "ReattachServer",
			Handler:    _ServerHostService_ReattachServer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "simplecloud/controller/v1/server_host_api.proto",
}

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

Functions

func RegisterControllerGroupServiceServer

func RegisterControllerGroupServiceServer(s grpc.ServiceRegistrar, srv ControllerGroupServiceServer)

func RegisterControllerServerServiceServer

func RegisterControllerServerServiceServer(s grpc.ServiceRegistrar, srv ControllerServerServiceServer)

func RegisterServerHostServiceServer

func RegisterServerHostServiceServer(s grpc.ServiceRegistrar, srv ServerHostServiceServer)

Types

type ControllerGroupServiceClient

type ControllerGroupServiceClient interface {
	GetGroupsByType(ctx context.Context, in *v1.GetGroupsByTypeRequest, opts ...grpc.CallOption) (*v1.GetGroupsByTypeResponse, error)
	GetGroupByName(ctx context.Context, in *v1.GetGroupByNameRequest, opts ...grpc.CallOption) (*v1.GetGroupByNameResponse, error)
	DeleteGroupByName(ctx context.Context, in *v1.GetGroupByNameRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	CreateGroup(ctx context.Context, in *v1.GroupDefinition, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	UpdateGroup(ctx context.Context, in *v1.GroupDefinition, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	GetAllGroups(ctx context.Context, in *v1.GetAllGroupsRequest, opts ...grpc.CallOption) (*v1.GetAllGroupsResponse, error)
}

ControllerGroupServiceClient is the client API for ControllerGroupService 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.

func NewControllerGroupServiceClient

func NewControllerGroupServiceClient(cc grpc.ClientConnInterface) ControllerGroupServiceClient

type ControllerGroupServiceServer

ControllerGroupServiceServer is the server API for ControllerGroupService service. All implementations should embed UnimplementedControllerGroupServiceServer for forward compatibility

type ControllerServerServiceClient

type ControllerServerServiceClient interface {
	GetAllServers(ctx context.Context, in *v1.GetAllServersRequest, opts ...grpc.CallOption) (*v1.GetAllServersResponse, error)
	GetServersByType(ctx context.Context, in *v1.ServerTypeRequest, opts ...grpc.CallOption) (*v1.GetServersByGroupResponse, error)
	GetServersByGroup(ctx context.Context, in *v1.GroupNameRequest, opts ...grpc.CallOption) (*v1.GetServersByGroupResponse, error)
	GetServerByNumerical(ctx context.Context, in *v1.GetServerByNumericalRequest, opts ...grpc.CallOption) (*v1.ServerDefinition, error)
	GetServerById(ctx context.Context, in *v1.ServerIdRequest, opts ...grpc.CallOption) (*v1.ServerDefinition, error)
	StartServer(ctx context.Context, in *v1.GroupNameRequest, opts ...grpc.CallOption) (*v1.ServerDefinition, error)
	StopServer(ctx context.Context, in *v1.ServerIdRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	StopServerByNumerical(ctx context.Context, in *v1.StopServerByNumericalRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	UpdateServer(ctx context.Context, in *v1.ServerUpdateRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	UpdateServerState(ctx context.Context, in *v1.ServerUpdateStateRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	UpdateServerProperty(ctx context.Context, in *v1.ServerUpdatePropertyRequest, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	AttachServerHost(ctx context.Context, in *v1.ServerHostDefinition, opts ...grpc.CallOption) (*v1.StatusResponse, error)
}

ControllerServerServiceClient is the client API for ControllerServerService 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.

func NewControllerServerServiceClient

func NewControllerServerServiceClient(cc grpc.ClientConnInterface) ControllerServerServiceClient

type ControllerServerServiceServer

ControllerServerServiceServer is the server API for ControllerServerService service. All implementations should embed UnimplementedControllerServerServiceServer for forward compatibility

type ServerHostServiceClient

type ServerHostServiceClient interface {
	StartServer(ctx context.Context, in *v1.StartServerRequest, opts ...grpc.CallOption) (*v1.ServerDefinition, error)
	StopServer(ctx context.Context, in *v1.ServerDefinition, opts ...grpc.CallOption) (*v1.StatusResponse, error)
	ReattachServer(ctx context.Context, in *v1.ServerDefinition, opts ...grpc.CallOption) (*v1.StatusResponse, error)
}

ServerHostServiceClient is the client API for ServerHostService 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.

func NewServerHostServiceClient

func NewServerHostServiceClient(cc grpc.ClientConnInterface) ServerHostServiceClient

type ServerHostServiceServer

type ServerHostServiceServer interface {
	StartServer(context.Context, *v1.StartServerRequest) (*v1.ServerDefinition, error)
	StopServer(context.Context, *v1.ServerDefinition) (*v1.StatusResponse, error)
	ReattachServer(context.Context, *v1.ServerDefinition) (*v1.StatusResponse, error)
}

ServerHostServiceServer is the server API for ServerHostService service. All implementations should embed UnimplementedServerHostServiceServer for forward compatibility

type UnimplementedControllerGroupServiceServer

type UnimplementedControllerGroupServiceServer struct {
}

UnimplementedControllerGroupServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedControllerGroupServiceServer) CreateGroup

func (UnimplementedControllerGroupServiceServer) DeleteGroupByName

func (UnimplementedControllerGroupServiceServer) GetAllGroups

func (UnimplementedControllerGroupServiceServer) GetGroupByName

func (UnimplementedControllerGroupServiceServer) GetGroupsByType

func (UnimplementedControllerGroupServiceServer) UpdateGroup

type UnimplementedControllerServerServiceServer

type UnimplementedControllerServerServiceServer struct {
}

UnimplementedControllerServerServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedControllerServerServiceServer) AttachServerHost

func (UnimplementedControllerServerServiceServer) GetAllServers

func (UnimplementedControllerServerServiceServer) GetServerById

func (UnimplementedControllerServerServiceServer) GetServerByNumerical

func (UnimplementedControllerServerServiceServer) GetServersByGroup

func (UnimplementedControllerServerServiceServer) GetServersByType

func (UnimplementedControllerServerServiceServer) StartServer

func (UnimplementedControllerServerServiceServer) StopServer

func (UnimplementedControllerServerServiceServer) StopServerByNumerical

func (UnimplementedControllerServerServiceServer) UpdateServer

func (UnimplementedControllerServerServiceServer) UpdateServerProperty

func (UnimplementedControllerServerServiceServer) UpdateServerState

type UnimplementedServerHostServiceServer

type UnimplementedServerHostServiceServer struct {
}

UnimplementedServerHostServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedServerHostServiceServer) ReattachServer

func (UnimplementedServerHostServiceServer) StartServer

func (UnimplementedServerHostServiceServer) StopServer

type UnsafeControllerGroupServiceServer

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

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

type UnsafeControllerServerServiceServer

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

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

type UnsafeServerHostServiceServer

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

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

Jump to

Keyboard shortcuts

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