Documentation ¶
Index ¶
- type Agones
- func (a *Agones) Allocate() error
- func (a *Agones) Alpha() aiface.IAlpha
- func (a *Agones) GameServer() (*sdk.GameServer, error)
- func (a *Agones) Health() error
- func (a *Agones) Init() error
- func (a *Agones) Ready() error
- func (a *Agones) Reserve(d time.Duration) error
- func (a *Agones) SetAnnotation(key, value string) error
- func (a *Agones) SetLabel(key, value string) error
- func (a *Agones) Shutdown() error
- func (a *Agones) WatchGameServer(cb agone.GameServerCallback) error
- type Mock
- func (d *Mock) Allocate() error
- func (d *Mock) Alpha() aiface.IAlpha
- func (d *Mock) GameServer() (*sdk.GameServer, error)
- func (d *Mock) Health() error
- func (d *Mock) Init() error
- func (d *Mock) Ready() error
- func (d *Mock) Reserve(_ time.Duration) error
- func (d *Mock) SetAnnotation(_, _ string) error
- func (d *Mock) SetLabel(_, _ string) error
- func (d *Mock) Shutdown() error
- func (d *Mock) WatchGameServer(_ agone.GameServerCallback) error
- type MockAlpha
- func (d *MockAlpha) AppendListValue(key, value string) (bool, error)
- func (d *MockAlpha) DecrementCounter(key string, amount int64) (bool, error)
- func (d *MockAlpha) DeleteListValue(key, value string) (bool, error)
- func (d *MockAlpha) GetConnectedPlayers() ([]string, error)
- func (d *MockAlpha) GetCounterCapacity(key string) (int64, error)
- func (d *MockAlpha) GetCounterCount(key string) (int64, error)
- func (d *MockAlpha) GetListCapacity(key string) (int64, error)
- func (d *MockAlpha) GetListLength(key string) (int, error)
- func (d *MockAlpha) GetListValues(key string) ([]string, error)
- func (d *MockAlpha) GetPlayerCapacity() (int64, error)
- func (d *MockAlpha) GetPlayerCount() (int64, error)
- func (d *MockAlpha) IncrementCounter(key string, amount int64) (bool, error)
- func (d *MockAlpha) IsPlayerConnected(id string) (bool, error)
- func (d *MockAlpha) ListContains(key, value string) (bool, error)
- func (d *MockAlpha) PlayerConnect(id string) (bool, error)
- func (d *MockAlpha) PlayerDisconnect(id string) (bool, error)
- func (d *MockAlpha) SetCounterCapacity(key string, amount int64) (bool, error)
- func (d *MockAlpha) SetCounterCount(key string, amount int64) (bool, error)
- func (d *MockAlpha) SetListCapacity(key string, amount int64) (bool, error)
- func (d *MockAlpha) SetPlayerCapacity(capacity int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agones ¶
type Agones struct {
// contains filtered or unexported fields
}
Agones is a wrapper around the agones sdk
func (*Agones) GameServer ¶
func (a *Agones) GameServer() (*sdk.GameServer, error)
func (*Agones) SetAnnotation ¶
func (*Agones) WatchGameServer ¶ added in v0.0.28
func (a *Agones) WatchGameServer(cb agone.GameServerCallback) error
type Mock ¶
type Mock struct { }
func (*Mock) GameServer ¶
func (d *Mock) GameServer() (*sdk.GameServer, error)
func (*Mock) SetAnnotation ¶
func (*Mock) WatchGameServer ¶ added in v0.0.28
func (d *Mock) WatchGameServer(_ agone.GameServerCallback) error
type MockAlpha ¶ added in v0.0.31
type MockAlpha struct { }
func (*MockAlpha) AppendListValue ¶ added in v0.0.31
func (*MockAlpha) DecrementCounter ¶ added in v0.0.31
func (*MockAlpha) DeleteListValue ¶ added in v0.0.31
func (*MockAlpha) GetConnectedPlayers ¶ added in v0.0.31
func (*MockAlpha) GetCounterCapacity ¶ added in v0.0.31
func (*MockAlpha) GetCounterCount ¶ added in v0.0.31
func (*MockAlpha) GetListCapacity ¶ added in v0.0.31
func (*MockAlpha) GetListLength ¶ added in v0.0.31
func (*MockAlpha) GetListValues ¶ added in v0.0.31
func (*MockAlpha) GetPlayerCapacity ¶ added in v0.0.31
func (*MockAlpha) GetPlayerCount ¶ added in v0.0.31
func (*MockAlpha) IncrementCounter ¶ added in v0.0.31
func (*MockAlpha) IsPlayerConnected ¶ added in v0.0.31
func (*MockAlpha) ListContains ¶ added in v0.0.31
func (*MockAlpha) PlayerConnect ¶ added in v0.0.31
func (*MockAlpha) PlayerDisconnect ¶ added in v0.0.31
func (*MockAlpha) SetCounterCapacity ¶ added in v0.0.31
func (*MockAlpha) SetCounterCount ¶ added in v0.0.31
func (*MockAlpha) SetListCapacity ¶ added in v0.0.31
func (*MockAlpha) SetPlayerCapacity ¶ added in v0.0.31
Click to show internal directories.
Click to hide internal directories.