sdk

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: 4 Imported by: 0

Documentation

Index

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) Allocate

func (a *Agones) Allocate() error

func (*Agones) Alpha added in v0.0.28

func (a *Agones) Alpha() aiface.IAlpha

func (*Agones) GameServer

func (a *Agones) GameServer() (*sdk.GameServer, error)

func (*Agones) Health

func (a *Agones) Health() error

func (*Agones) Init

func (a *Agones) Init() error

func (*Agones) Ready

func (a *Agones) Ready() error

func (*Agones) Reserve

func (a *Agones) Reserve(d time.Duration) error

func (*Agones) SetAnnotation

func (a *Agones) SetAnnotation(key, value string) error

func (*Agones) SetLabel

func (a *Agones) SetLabel(key, value string) error

func (*Agones) Shutdown

func (a *Agones) Shutdown() error

func (*Agones) WatchGameServer added in v0.0.28

func (a *Agones) WatchGameServer(cb agone.GameServerCallback) error

type Mock

type Mock struct {
}

func (*Mock) Allocate

func (d *Mock) Allocate() error

func (*Mock) Alpha added in v0.0.28

func (d *Mock) Alpha() aiface.IAlpha

func (*Mock) GameServer

func (d *Mock) GameServer() (*sdk.GameServer, error)

func (*Mock) Health

func (d *Mock) Health() error

func (*Mock) Init

func (d *Mock) Init() error

func (*Mock) Ready

func (d *Mock) Ready() error

func (*Mock) Reserve

func (d *Mock) Reserve(_ time.Duration) error

func (*Mock) SetAnnotation

func (d *Mock) SetAnnotation(_, _ string) error

func (*Mock) SetLabel

func (d *Mock) SetLabel(_, _ string) error

func (*Mock) Shutdown

func (d *Mock) Shutdown() error

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 (d *MockAlpha) AppendListValue(key, value string) (bool, error)

func (*MockAlpha) DecrementCounter added in v0.0.31

func (d *MockAlpha) DecrementCounter(key string, amount int64) (bool, error)

func (*MockAlpha) DeleteListValue added in v0.0.31

func (d *MockAlpha) DeleteListValue(key, value string) (bool, error)

func (*MockAlpha) GetConnectedPlayers added in v0.0.31

func (d *MockAlpha) GetConnectedPlayers() ([]string, error)

func (*MockAlpha) GetCounterCapacity added in v0.0.31

func (d *MockAlpha) GetCounterCapacity(key string) (int64, error)

func (*MockAlpha) GetCounterCount added in v0.0.31

func (d *MockAlpha) GetCounterCount(key string) (int64, error)

func (*MockAlpha) GetListCapacity added in v0.0.31

func (d *MockAlpha) GetListCapacity(key string) (int64, error)

func (*MockAlpha) GetListLength added in v0.0.31

func (d *MockAlpha) GetListLength(key string) (int, error)

func (*MockAlpha) GetListValues added in v0.0.31

func (d *MockAlpha) GetListValues(key string) ([]string, error)

func (*MockAlpha) GetPlayerCapacity added in v0.0.31

func (d *MockAlpha) GetPlayerCapacity() (int64, error)

func (*MockAlpha) GetPlayerCount added in v0.0.31

func (d *MockAlpha) GetPlayerCount() (int64, error)

func (*MockAlpha) IncrementCounter added in v0.0.31

func (d *MockAlpha) IncrementCounter(key string, amount int64) (bool, error)

func (*MockAlpha) IsPlayerConnected added in v0.0.31

func (d *MockAlpha) IsPlayerConnected(id string) (bool, error)

func (*MockAlpha) ListContains added in v0.0.31

func (d *MockAlpha) ListContains(key, value string) (bool, error)

func (*MockAlpha) PlayerConnect added in v0.0.31

func (d *MockAlpha) PlayerConnect(id string) (bool, error)

func (*MockAlpha) PlayerDisconnect added in v0.0.31

func (d *MockAlpha) PlayerDisconnect(id string) (bool, error)

func (*MockAlpha) SetCounterCapacity added in v0.0.31

func (d *MockAlpha) SetCounterCapacity(key string, amount int64) (bool, error)

func (*MockAlpha) SetCounterCount added in v0.0.31

func (d *MockAlpha) SetCounterCount(key string, amount int64) (bool, error)

func (*MockAlpha) SetListCapacity added in v0.0.31

func (d *MockAlpha) SetListCapacity(key string, amount int64) (bool, error)

func (*MockAlpha) SetPlayerCapacity added in v0.0.31

func (d *MockAlpha) SetPlayerCapacity(capacity int64) error

Jump to

Keyboard shortcuts

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