allocationendpoint

package
v0.0.0-...-e9cf271 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_google_cloud_gaming_allocationendpoint_v1alpha_allocation_endpoint_proto protoreflect.FileDescriptor

Functions

func RegisterAllocationEndpointServiceServer

func RegisterAllocationEndpointServiceServer(s *grpc.Server, srv AllocationEndpointServiceServer)

Types

type AllocationEndpointServiceClient

type AllocationEndpointServiceClient interface {
	// Proxy allocation service to the Game Server Clusters.
	Allocate(ctx context.Context, in *AllocationRequest, opts ...grpc.CallOption) (*AllocationResponse, error)
}

AllocationEndpointServiceClient is the client API for AllocationEndpointService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AllocationEndpointServiceServer

type AllocationEndpointServiceServer interface {
	// Proxy allocation service to the Game Server Clusters.
	Allocate(context.Context, *AllocationRequest) (*AllocationResponse, error)
}

AllocationEndpointServiceServer is the server API for AllocationEndpointService service.

type AllocationRequest

type AllocationRequest struct {

	// The required realm name in the following form:
	// `{location}/{realm}`.
	Realm string `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
	// The default game server deployment name.
	// This is used to increase the likelihood of a successful
	// allocation.
	DefaultGameServerDeployment string `` /* 146-byte string literal not displayed */
	// The ordered list of game server labels to match for allocations.
	// If the first game server selector is not matched, the selection attempts
	// the second game server selector, and so on.
	GameServerSelectors []*GameServerSelector `protobuf:"bytes,3,rep,name=game_server_selectors,json=gameServerSelectors,proto3" json:"game_server_selectors,omitempty"`
	// Metadata is optional custom metadata that is added to the game server at
	// allocation. You can use this to tell the server necessary session data.
	Metadata *MetaPatch `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocationRequest) Descriptor deprecated

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

Deprecated: Use AllocationRequest.ProtoReflect.Descriptor instead.

func (*AllocationRequest) GetDefaultGameServerDeployment

func (x *AllocationRequest) GetDefaultGameServerDeployment() string

func (*AllocationRequest) GetGameServerSelectors

func (x *AllocationRequest) GetGameServerSelectors() []*GameServerSelector

func (*AllocationRequest) GetMetadata

func (x *AllocationRequest) GetMetadata() *MetaPatch

func (*AllocationRequest) GetRealm

func (x *AllocationRequest) GetRealm() string

func (*AllocationRequest) ProtoMessage

func (*AllocationRequest) ProtoMessage()

func (*AllocationRequest) ProtoReflect

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

func (*AllocationRequest) Reset

func (x *AllocationRequest) Reset()

func (*AllocationRequest) String

func (x *AllocationRequest) String() string

type AllocationResponse

type AllocationResponse struct {

	// The name of the allocated game server.
	GameServerName string `protobuf:"bytes,1,opt,name=game_server_name,json=gameServerName,proto3" json:"game_server_name,omitempty"`
	// The allocated game server's port information.
	Ports []*AllocationResponse_GameServerStatusPort `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
	// The address of the allocated game server.
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// The node name of the allocated game server.
	NodeName string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// The game server cluster from which the game server was allocated.
	GameServerClusterName string `` /* 128-byte string literal not displayed */
	// The game server deployment from which the game server was allocated.
	DeploymentName string `protobuf:"bytes,6,opt,name=deployment_name,json=deploymentName,proto3" json:"deployment_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocationResponse) Descriptor deprecated

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

Deprecated: Use AllocationResponse.ProtoReflect.Descriptor instead.

func (*AllocationResponse) GetAddress

func (x *AllocationResponse) GetAddress() string

func (*AllocationResponse) GetDeploymentName

func (x *AllocationResponse) GetDeploymentName() string

func (*AllocationResponse) GetGameServerClusterName

func (x *AllocationResponse) GetGameServerClusterName() string

func (*AllocationResponse) GetGameServerName

func (x *AllocationResponse) GetGameServerName() string

func (*AllocationResponse) GetNodeName

func (x *AllocationResponse) GetNodeName() string

func (*AllocationResponse) GetPorts

func (*AllocationResponse) ProtoMessage

func (*AllocationResponse) ProtoMessage()

func (*AllocationResponse) ProtoReflect

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

func (*AllocationResponse) Reset

func (x *AllocationResponse) Reset()

func (*AllocationResponse) String

func (x *AllocationResponse) String() string

type AllocationResponse_GameServerStatusPort

type AllocationResponse_GameServerStatusPort struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

The game server port info that is allocated.

func (*AllocationResponse_GameServerStatusPort) Descriptor deprecated

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

Deprecated: Use AllocationResponse_GameServerStatusPort.ProtoReflect.Descriptor instead.

func (*AllocationResponse_GameServerStatusPort) GetName

func (*AllocationResponse_GameServerStatusPort) GetPort

func (*AllocationResponse_GameServerStatusPort) ProtoMessage

func (*AllocationResponse_GameServerStatusPort) ProtoReflect

func (*AllocationResponse_GameServerStatusPort) Reset

func (*AllocationResponse_GameServerStatusPort) String

type GameServerSelector

type GameServerSelector struct {

	// Labels to match.
	MatchLabels map[string]string `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

GameServerSelector used for finding a GameServer with matching labels.

func (*GameServerSelector) Descriptor deprecated

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

Deprecated: Use GameServerSelector.ProtoReflect.Descriptor instead.

func (*GameServerSelector) GetMatchLabels

func (x *GameServerSelector) GetMatchLabels() map[string]string

func (*GameServerSelector) ProtoMessage

func (*GameServerSelector) ProtoMessage()

func (*GameServerSelector) ProtoReflect

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

func (*GameServerSelector) Reset

func (x *GameServerSelector) Reset()

func (*GameServerSelector) String

func (x *GameServerSelector) String() string

type MetaPatch

type MetaPatch struct {
	Labels      map[string]string `` /* 153-byte string literal not displayed */
	Annotations map[string]string `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

MetaPatch is the metadata used to patch the Game Server metadata on allocation. It behaves exactly as it does in OSS.

func (*MetaPatch) Descriptor deprecated

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

Deprecated: Use MetaPatch.ProtoReflect.Descriptor instead.

func (*MetaPatch) GetAnnotations

func (x *MetaPatch) GetAnnotations() map[string]string

func (*MetaPatch) GetLabels

func (x *MetaPatch) GetLabels() map[string]string

func (*MetaPatch) ProtoMessage

func (*MetaPatch) ProtoMessage()

func (*MetaPatch) ProtoReflect

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

func (*MetaPatch) Reset

func (x *MetaPatch) Reset()

func (*MetaPatch) String

func (x *MetaPatch) String() string

type UnimplementedAllocationEndpointServiceServer

type UnimplementedAllocationEndpointServiceServer struct {
}

UnimplementedAllocationEndpointServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAllocationEndpointServiceServer) Allocate

Jump to

Keyboard shortcuts

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