Documentation ¶
Index ¶
Constants ¶
View Source
const ( BackfillConnectionKey = "game.kruise.io/connection" BackfillConnectedTag = "game.kruise.io/connected" OpenMatchLabelSelectorKey = "game.kruise.io/owner-gss" GameNameProfileKey = "game_name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct { GameServerLister v1alpha1Lister.GameServerLister GameServerClient v1alpha1client.Interface BackendClient pb.BackendServiceClient BackendConn *grpc.ClientConn FrontendClient pb.FrontendServiceClient FrontendConn *grpc.ClientConn MatchFunctionEndpoint string MatchFunctionPort int32 GameServerLabelSelector string ProfileName string GameServerSetNames string //GameServersReSyncInterval time.Duration MatchPullingInterval time.Duration // contains filtered or unexported fields }
func NewAllocator ¶
type Options ¶
type Options struct { MatchFunctionEndpoint string MatchFunctionPort int BackendEndpoint string BackendPort int FrontendEndpoint string FrontendPort int Config *rest.Config GameServerLabelSelector string GameServersReSyncInterval time.Duration MatchPullingInterval time.Duration ProfileName string GameServerSetNames string }
func (*Options) GetBackendConn ¶
GetBackendConn return backend conn of open-match service
func (*Options) GetFrontendConn ¶
GetFrontendConn return backend conn of open-match service
Click to show internal directories.
Click to hide internal directories.