api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kruise_game_api_proto protoreflect.FileDescriptor
View Source
var GameServerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kruisegameapi.GameServerService",
	HandlerType: (*GameServerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGameServers",
			Handler:    _GameServerService_GetGameServers_Handler,
		},
		{
			MethodName: "UpdateGameServers",
			Handler:    _GameServerService_UpdateGameServers_Handler,
		},
		{
			MethodName: "DeleteGameServers",
			Handler:    _GameServerService_DeleteGameServers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kruise_game_api.proto",
}

GameServerService_ServiceDesc is the grpc.ServiceDesc for GameServerService 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 GameServerSetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kruisegameapi.GameServerSetService",
	HandlerType: (*GameServerSetServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGameServerSets",
			Handler:    _GameServerSetService_GetGameServerSets_Handler,
		},
		{
			MethodName: "UpdateGameServerSets",
			Handler:    _GameServerSetService_UpdateGameServerSets_Handler,
		},
		{
			MethodName: "DeleteGameServerSets",
			Handler:    _GameServerSetService_DeleteGameServerSets_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kruise_game_api.proto",
}

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

Functions

func RegisterGameServerServiceServer

func RegisterGameServerServiceServer(s grpc.ServiceRegistrar, srv GameServerServiceServer)

func RegisterGameServerSetServiceServer

func RegisterGameServerSetServiceServer(s grpc.ServiceRegistrar, srv GameServerSetServiceServer)

Types

type DeleteGameServerResult

type DeleteGameServerResult struct {
	GameServer string  `protobuf:"bytes,1,opt,name=game_server,json=gameServer,proto3" json:"game_server,omitempty"`
	Error      *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServerResult) Descriptor deprecated

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

Deprecated: Use DeleteGameServerResult.ProtoReflect.Descriptor instead.

func (*DeleteGameServerResult) GetError

func (x *DeleteGameServerResult) GetError() string

func (*DeleteGameServerResult) GetGameServer

func (x *DeleteGameServerResult) GetGameServer() string

func (*DeleteGameServerResult) ProtoMessage

func (*DeleteGameServerResult) ProtoMessage()

func (*DeleteGameServerResult) ProtoReflect

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

func (*DeleteGameServerResult) Reset

func (x *DeleteGameServerResult) Reset()

func (*DeleteGameServerResult) String

func (x *DeleteGameServerResult) String() string

type DeleteGameServerSetResult

type DeleteGameServerSetResult struct {
	GameServerSet string  `protobuf:"bytes,1,opt,name=game_server_set,json=gameServerSet,proto3" json:"game_server_set,omitempty"`
	Error         *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServerSetResult) Descriptor deprecated

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

Deprecated: Use DeleteGameServerSetResult.ProtoReflect.Descriptor instead.

func (*DeleteGameServerSetResult) GetError

func (x *DeleteGameServerSetResult) GetError() string

func (*DeleteGameServerSetResult) GetGameServerSet

func (x *DeleteGameServerSetResult) GetGameServerSet() string

func (*DeleteGameServerSetResult) ProtoMessage

func (*DeleteGameServerSetResult) ProtoMessage()

func (*DeleteGameServerSetResult) ProtoReflect

func (*DeleteGameServerSetResult) Reset

func (x *DeleteGameServerSetResult) Reset()

func (*DeleteGameServerSetResult) String

func (x *DeleteGameServerSetResult) String() string

type DeleteGameServerSetsRequest

type DeleteGameServerSetsRequest struct {
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServerSetsRequest) Descriptor deprecated

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

Deprecated: Use DeleteGameServerSetsRequest.ProtoReflect.Descriptor instead.

func (*DeleteGameServerSetsRequest) GetFilter

func (x *DeleteGameServerSetsRequest) GetFilter() string

func (*DeleteGameServerSetsRequest) ProtoMessage

func (*DeleteGameServerSetsRequest) ProtoMessage()

func (*DeleteGameServerSetsRequest) ProtoReflect

func (*DeleteGameServerSetsRequest) Reset

func (x *DeleteGameServerSetsRequest) Reset()

func (*DeleteGameServerSetsRequest) String

func (x *DeleteGameServerSetsRequest) String() string

type DeleteGameServerSetsResponse

type DeleteGameServerSetsResponse struct {
	Results []*DeleteGameServerSetResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServerSetsResponse) Descriptor deprecated

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

Deprecated: Use DeleteGameServerSetsResponse.ProtoReflect.Descriptor instead.

func (*DeleteGameServerSetsResponse) GetResults

func (*DeleteGameServerSetsResponse) ProtoMessage

func (*DeleteGameServerSetsResponse) ProtoMessage()

func (*DeleteGameServerSetsResponse) ProtoReflect

func (*DeleteGameServerSetsResponse) Reset

func (x *DeleteGameServerSetsResponse) Reset()

func (*DeleteGameServerSetsResponse) String

type DeleteGameServersRequest

type DeleteGameServersRequest struct {
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServersRequest) Descriptor deprecated

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

Deprecated: Use DeleteGameServersRequest.ProtoReflect.Descriptor instead.

func (*DeleteGameServersRequest) GetFilter

func (x *DeleteGameServersRequest) GetFilter() string

func (*DeleteGameServersRequest) ProtoMessage

func (*DeleteGameServersRequest) ProtoMessage()

func (*DeleteGameServersRequest) ProtoReflect

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

func (*DeleteGameServersRequest) Reset

func (x *DeleteGameServersRequest) Reset()

func (*DeleteGameServersRequest) String

func (x *DeleteGameServersRequest) String() string

type DeleteGameServersResponse

type DeleteGameServersResponse struct {
	Results []*DeleteGameServerResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteGameServersResponse) Descriptor deprecated

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

Deprecated: Use DeleteGameServersResponse.ProtoReflect.Descriptor instead.

func (*DeleteGameServersResponse) GetResults

func (*DeleteGameServersResponse) ProtoMessage

func (*DeleteGameServersResponse) ProtoMessage()

func (*DeleteGameServersResponse) ProtoReflect

func (*DeleteGameServersResponse) Reset

func (x *DeleteGameServersResponse) Reset()

func (*DeleteGameServersResponse) String

func (x *DeleteGameServersResponse) String() string

type GameServerServiceClient

type GameServerServiceClient interface {
	GetGameServers(ctx context.Context, in *GetGameServersRequest, opts ...grpc.CallOption) (*GetGameServersResponse, error)
	UpdateGameServers(ctx context.Context, in *UpdateGameServersRequest, opts ...grpc.CallOption) (*UpdateGameServersResponse, error)
	DeleteGameServers(ctx context.Context, in *DeleteGameServersRequest, opts ...grpc.CallOption) (*DeleteGameServersResponse, error)
}

GameServerServiceClient is the client API for GameServerService 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 GameServerServiceServer

type GameServerServiceServer interface {
	GetGameServers(context.Context, *GetGameServersRequest) (*GetGameServersResponse, error)
	UpdateGameServers(context.Context, *UpdateGameServersRequest) (*UpdateGameServersResponse, error)
	DeleteGameServers(context.Context, *DeleteGameServersRequest) (*DeleteGameServersResponse, error)
	// contains filtered or unexported methods
}

GameServerServiceServer is the server API for GameServerService service. All implementations must embed UnimplementedGameServerServiceServer for forward compatibility

type GameServerSetServiceClient

type GameServerSetServiceClient interface {
	GetGameServerSets(ctx context.Context, in *GetGameServerSetsRequest, opts ...grpc.CallOption) (*GetGameServerSetsResponse, error)
	UpdateGameServerSets(ctx context.Context, in *UpdateGameServerSetsRequest, opts ...grpc.CallOption) (*UpdateGameServerSetsResponse, error)
	DeleteGameServerSets(ctx context.Context, in *DeleteGameServerSetsRequest, opts ...grpc.CallOption) (*DeleteGameServerSetsResponse, error)
}

GameServerSetServiceClient is the client API for GameServerSetService 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 GameServerSetServiceServer

type GameServerSetServiceServer interface {
	GetGameServerSets(context.Context, *GetGameServerSetsRequest) (*GetGameServerSetsResponse, error)
	UpdateGameServerSets(context.Context, *UpdateGameServerSetsRequest) (*UpdateGameServerSetsResponse, error)
	DeleteGameServerSets(context.Context, *DeleteGameServerSetsRequest) (*DeleteGameServerSetsResponse, error)
	// contains filtered or unexported methods
}

GameServerSetServiceServer is the server API for GameServerSetService service. All implementations must embed UnimplementedGameServerSetServiceServer for forward compatibility

type GetGameServerSetsRequest

type GetGameServerSetsRequest struct {
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGameServerSetsRequest) Descriptor deprecated

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

Deprecated: Use GetGameServerSetsRequest.ProtoReflect.Descriptor instead.

func (*GetGameServerSetsRequest) GetFilter

func (x *GetGameServerSetsRequest) GetFilter() string

func (*GetGameServerSetsRequest) ProtoMessage

func (*GetGameServerSetsRequest) ProtoMessage()

func (*GetGameServerSetsRequest) ProtoReflect

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

func (*GetGameServerSetsRequest) Reset

func (x *GetGameServerSetsRequest) Reset()

func (*GetGameServerSetsRequest) String

func (x *GetGameServerSetsRequest) String() string

type GetGameServerSetsResponse

type GetGameServerSetsResponse struct {
	GameServerSets []string `protobuf:"bytes,1,rep,name=game_server_sets,json=gameServerSets,proto3" json:"game_server_sets,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGameServerSetsResponse) Descriptor deprecated

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

Deprecated: Use GetGameServerSetsResponse.ProtoReflect.Descriptor instead.

func (*GetGameServerSetsResponse) GetGameServerSets

func (x *GetGameServerSetsResponse) GetGameServerSets() []string

func (*GetGameServerSetsResponse) ProtoMessage

func (*GetGameServerSetsResponse) ProtoMessage()

func (*GetGameServerSetsResponse) ProtoReflect

func (*GetGameServerSetsResponse) Reset

func (x *GetGameServerSetsResponse) Reset()

func (*GetGameServerSetsResponse) String

func (x *GetGameServerSetsResponse) String() string

type GetGameServersRequest

type GetGameServersRequest struct {
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGameServersRequest) Descriptor deprecated

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

Deprecated: Use GetGameServersRequest.ProtoReflect.Descriptor instead.

func (*GetGameServersRequest) GetFilter

func (x *GetGameServersRequest) GetFilter() string

func (*GetGameServersRequest) ProtoMessage

func (*GetGameServersRequest) ProtoMessage()

func (*GetGameServersRequest) ProtoReflect

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

func (*GetGameServersRequest) Reset

func (x *GetGameServersRequest) Reset()

func (*GetGameServersRequest) String

func (x *GetGameServersRequest) String() string

type GetGameServersResponse

type GetGameServersResponse struct {
	GameServers []string `protobuf:"bytes,1,rep,name=game_servers,json=gameServers,proto3" json:"game_servers,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGameServersResponse) Descriptor deprecated

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

Deprecated: Use GetGameServersResponse.ProtoReflect.Descriptor instead.

func (*GetGameServersResponse) GetGameServers

func (x *GetGameServersResponse) GetGameServers() []string

func (*GetGameServersResponse) ProtoMessage

func (*GetGameServersResponse) ProtoMessage()

func (*GetGameServersResponse) ProtoReflect

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

func (*GetGameServersResponse) Reset

func (x *GetGameServersResponse) Reset()

func (*GetGameServersResponse) String

func (x *GetGameServersResponse) String() string

type UnimplementedGameServerServiceServer

type UnimplementedGameServerServiceServer struct {
}

UnimplementedGameServerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGameServerServiceServer) DeleteGameServers

func (UnimplementedGameServerServiceServer) GetGameServers

func (UnimplementedGameServerServiceServer) UpdateGameServers

type UnimplementedGameServerSetServiceServer

type UnimplementedGameServerSetServiceServer struct {
}

UnimplementedGameServerSetServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGameServerSetServiceServer) DeleteGameServerSets

func (UnimplementedGameServerSetServiceServer) GetGameServerSets

func (UnimplementedGameServerSetServiceServer) UpdateGameServerSets

type UnsafeGameServerServiceServer

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

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

type UnsafeGameServerSetServiceServer

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

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

type UpdateGameServerResult

type UpdateGameServerResult struct {
	GameServer        string  `protobuf:"bytes,1,opt,name=game_server,json=gameServer,proto3" json:"game_server,omitempty"`
	UpdatedGameServer string  `protobuf:"bytes,2,opt,name=updated_game_server,json=updatedGameServer,proto3" json:"updated_game_server,omitempty"`
	Error             *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServerResult) Descriptor deprecated

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

Deprecated: Use UpdateGameServerResult.ProtoReflect.Descriptor instead.

func (*UpdateGameServerResult) GetError

func (x *UpdateGameServerResult) GetError() string

func (*UpdateGameServerResult) GetGameServer

func (x *UpdateGameServerResult) GetGameServer() string

func (*UpdateGameServerResult) GetUpdatedGameServer

func (x *UpdateGameServerResult) GetUpdatedGameServer() string

func (*UpdateGameServerResult) ProtoMessage

func (*UpdateGameServerResult) ProtoMessage()

func (*UpdateGameServerResult) ProtoReflect

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

func (*UpdateGameServerResult) Reset

func (x *UpdateGameServerResult) Reset()

func (*UpdateGameServerResult) String

func (x *UpdateGameServerResult) String() string

type UpdateGameServerSetResult

type UpdateGameServerSetResult struct {
	GameServerSet        string  `protobuf:"bytes,1,opt,name=game_server_set,json=gameServerSet,proto3" json:"game_server_set,omitempty"`
	UpdatedGameServerSet string  `protobuf:"bytes,2,opt,name=updated_game_server_set,json=updatedGameServerSet,proto3" json:"updated_game_server_set,omitempty"`
	Error                *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServerSetResult) Descriptor deprecated

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

Deprecated: Use UpdateGameServerSetResult.ProtoReflect.Descriptor instead.

func (*UpdateGameServerSetResult) GetError

func (x *UpdateGameServerSetResult) GetError() string

func (*UpdateGameServerSetResult) GetGameServerSet

func (x *UpdateGameServerSetResult) GetGameServerSet() string

func (*UpdateGameServerSetResult) GetUpdatedGameServerSet

func (x *UpdateGameServerSetResult) GetUpdatedGameServerSet() string

func (*UpdateGameServerSetResult) ProtoMessage

func (*UpdateGameServerSetResult) ProtoMessage()

func (*UpdateGameServerSetResult) ProtoReflect

func (*UpdateGameServerSetResult) Reset

func (x *UpdateGameServerSetResult) Reset()

func (*UpdateGameServerSetResult) String

func (x *UpdateGameServerSetResult) String() string

type UpdateGameServerSetsRequest

type UpdateGameServerSetsRequest struct {
	Filter    string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	JsonPatch string `protobuf:"bytes,2,opt,name=json_patch,json=jsonPatch,proto3" json:"json_patch,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServerSetsRequest) Descriptor deprecated

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

Deprecated: Use UpdateGameServerSetsRequest.ProtoReflect.Descriptor instead.

func (*UpdateGameServerSetsRequest) GetFilter

func (x *UpdateGameServerSetsRequest) GetFilter() string

func (*UpdateGameServerSetsRequest) GetJsonPatch

func (x *UpdateGameServerSetsRequest) GetJsonPatch() string

func (*UpdateGameServerSetsRequest) ProtoMessage

func (*UpdateGameServerSetsRequest) ProtoMessage()

func (*UpdateGameServerSetsRequest) ProtoReflect

func (*UpdateGameServerSetsRequest) Reset

func (x *UpdateGameServerSetsRequest) Reset()

func (*UpdateGameServerSetsRequest) String

func (x *UpdateGameServerSetsRequest) String() string

type UpdateGameServerSetsResponse

type UpdateGameServerSetsResponse struct {
	Results []*UpdateGameServerSetResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServerSetsResponse) Descriptor deprecated

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

Deprecated: Use UpdateGameServerSetsResponse.ProtoReflect.Descriptor instead.

func (*UpdateGameServerSetsResponse) GetResults

func (*UpdateGameServerSetsResponse) ProtoMessage

func (*UpdateGameServerSetsResponse) ProtoMessage()

func (*UpdateGameServerSetsResponse) ProtoReflect

func (*UpdateGameServerSetsResponse) Reset

func (x *UpdateGameServerSetsResponse) Reset()

func (*UpdateGameServerSetsResponse) String

type UpdateGameServersRequest

type UpdateGameServersRequest struct {
	Filter    string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	JsonPatch string `protobuf:"bytes,2,opt,name=json_patch,json=jsonPatch,proto3" json:"json_patch,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServersRequest) Descriptor deprecated

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

Deprecated: Use UpdateGameServersRequest.ProtoReflect.Descriptor instead.

func (*UpdateGameServersRequest) GetFilter

func (x *UpdateGameServersRequest) GetFilter() string

func (*UpdateGameServersRequest) GetJsonPatch

func (x *UpdateGameServersRequest) GetJsonPatch() string

func (*UpdateGameServersRequest) ProtoMessage

func (*UpdateGameServersRequest) ProtoMessage()

func (*UpdateGameServersRequest) ProtoReflect

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

func (*UpdateGameServersRequest) Reset

func (x *UpdateGameServersRequest) Reset()

func (*UpdateGameServersRequest) String

func (x *UpdateGameServersRequest) String() string

type UpdateGameServersResponse

type UpdateGameServersResponse struct {
	Results []*UpdateGameServerResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateGameServersResponse) Descriptor deprecated

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

Deprecated: Use UpdateGameServersResponse.ProtoReflect.Descriptor instead.

func (*UpdateGameServersResponse) GetResults

func (*UpdateGameServersResponse) ProtoMessage

func (*UpdateGameServersResponse) ProtoMessage()

func (*UpdateGameServersResponse) ProtoReflect

func (*UpdateGameServersResponse) Reset

func (x *UpdateGameServersResponse) Reset()

func (*UpdateGameServersResponse) String

func (x *UpdateGameServersResponse) String() string

Jump to

Keyboard shortcuts

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