Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGameLiftResponse ¶
func ParseGameLiftResponse(data []interface{}) error
Types ¶
type Client ¶
type Client interface { Handle(h Handler) Open() error ProcessReady(event *pbuffer.ProcessReady) error ProcessEnding(event *pbuffer.ProcessEnding) error ActivateGameSession(event *pbuffer.GameSessionActivate) error TerminateGameSession(event *pbuffer.GameSessionTerminate) error StartMatchBackfill(event *pbuffer.BackfillMatchmakingRequest) (*pbuffer.BackfillMatchmakingResponse, error) StopMatchBackfill(event *pbuffer.StopMatchmakingRequest) error UpdatePlayerSessionCreationPolicy(event *pbuffer.UpdatePlayerSessionCreationPolicy) error AcceptPlayerSession(event *pbuffer.AcceptPlayerSession) error RemovePlayerSession(event *pbuffer.RemovePlayerSession) error DescribePlayerSessions(event *pbuffer.DescribePlayerSessionsRequest) (*pbuffer.DescribePlayerSessionsResponse, error) GetGameSessionId() *string GetTerminationTime() *time.Time }
type GenericError ¶
type GenericError struct {
pbuffer.GameLiftResponse
}
func (*GenericError) Error ¶
func (err *GenericError) Error() string
type Handler ¶
type Handler interface { StartGameSession(event *pbuffer.ActivateGameSession) UpdateGameSession(event *pbuffer.UpdateGameSession) ProcessTerminate(event *pbuffer.TerminateProcess) HealthCheck() bool }
Click to show internal directories.
Click to hide internal directories.