infra

package
v0.0.0-...-2525d98 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterServerClient

type MasterServerClient struct {
	// contains filtered or unexported fields
}

MasterServerClient ...

func NewMasterServerClient

func NewMasterServerClient(grpc pb.GameServerMasterClient) *MasterServerClient

NewMasterServerClient ...

func (*MasterServerClient) AuthorizePlayer

func (m *MasterServerClient) AuthorizePlayer(token string, player *model.Player) error

AuthorizePlayer ...

func (*MasterServerClient) EndGame

func (m *MasterServerClient) EndGame(gameState *model.GameState)

EndGame ...

func (*MasterServerClient) GetServerState

func (m *MasterServerClient) GetServerState()

GetServerState ...

func (*MasterServerClient) Init

func (m *MasterServerClient) Init(address string)

Init ...

func (*MasterServerClient) SendHeartbeat

func (m *MasterServerClient) SendHeartbeat(gameState *model.GameState)

SendHeartbeat ...

Jump to

Keyboard shortcuts

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