aiface

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAgones

type IAgones interface {
	Init() error
	Ready() error
	Health() error
	Allocate() error
	Shutdown() error
	Reserve(d time.Duration) error
	SetLabel(key, value string) error
	SetAnnotation(key, value string) error
	GameServer() (*sdk.GameServer, error)
	WatchGameServer(_ agone.GameServerCallback) error
	Alpha() IAlpha
}

type IAlpha

type IAlpha interface {
	GetPlayerCapacity() (int64, error)
	SetPlayerCapacity(capacity int64) error
	PlayerConnect(id string) (bool, error)
	PlayerDisconnect(id string) (bool, error)
	GetPlayerCount() (int64, error)
	IsPlayerConnected(id string) (bool, error)
	GetConnectedPlayers() ([]string, error)
	GetCounterCount(key string) (int64, error)
	IncrementCounter(key string, amount int64) (bool, error)
	DecrementCounter(key string, amount int64) (bool, error)
	SetCounterCount(key string, amount int64) (bool, error)
	GetCounterCapacity(key string) (int64, error)
	SetCounterCapacity(key string, amount int64) (bool, error)
	GetListCapacity(key string) (int64, error)
	SetListCapacity(key string, amount int64) (bool, error)
	ListContains(key, value string) (bool, error)
	GetListLength(key string) (int, error)
	GetListValues(key string) ([]string, error)
	AppendListValue(key, value string) (bool, error)
	DeleteListValue(key, value string) (bool, error)
}

Jump to

Keyboard shortcuts

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