Documentation ¶
Index ¶
- type Agones
- func (a *Agones) Allocate() error
- func (a *Agones) CounterList() aiface.ICounterList
- 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) CounterList() aiface.ICounterList
- 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 MockCounterList
- func (d *MockCounterList) AppendListValue(key, value string) error
- func (d *MockCounterList) DecrementCounter(key string, amount int64) error
- func (d *MockCounterList) DeleteListValue(key, value string) error
- func (d *MockCounterList) GetCounterCapacity(key string) (int64, error)
- func (d *MockCounterList) GetCounterCount(key string) (int64, error)
- func (d *MockCounterList) GetListCapacity(key string) (int64, error)
- func (d *MockCounterList) GetListLength(key string) (int, error)
- func (d *MockCounterList) GetListValues(key string) ([]string, error)
- func (d *MockCounterList) IncrementCounter(key string, amount int64) error
- func (d *MockCounterList) ListContains(key, value string) (bool, error)
- func (d *MockCounterList) SetCounterCapacity(key string, amount int64) error
- func (d *MockCounterList) SetCounterCount(key string, amount int64) error
- func (d *MockCounterList) SetListCapacity(key string, amount 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) CounterList ¶
func (a *Agones) CounterList() aiface.ICounterList
func (*Agones) GameServer ¶
func (a *Agones) GameServer() (*sdk.GameServer, error)
func (*Agones) SetAnnotation ¶
func (*Agones) WatchGameServer ¶
func (a *Agones) WatchGameServer(cb agone.GameServerCallback) error
type Mock ¶
type Mock struct { }
func (*Mock) CounterList ¶
func (d *Mock) CounterList() aiface.ICounterList
func (*Mock) GameServer ¶
func (d *Mock) GameServer() (*sdk.GameServer, error)
func (*Mock) SetAnnotation ¶
func (*Mock) WatchGameServer ¶
func (d *Mock) WatchGameServer(_ agone.GameServerCallback) error
type MockCounterList ¶
type MockCounterList struct { }
func (*MockCounterList) AppendListValue ¶
func (d *MockCounterList) AppendListValue(key, value string) error
func (*MockCounterList) DecrementCounter ¶
func (d *MockCounterList) DecrementCounter(key string, amount int64) error
func (*MockCounterList) DeleteListValue ¶
func (d *MockCounterList) DeleteListValue(key, value string) error
func (*MockCounterList) GetCounterCapacity ¶
func (d *MockCounterList) GetCounterCapacity(key string) (int64, error)
func (*MockCounterList) GetCounterCount ¶
func (d *MockCounterList) GetCounterCount(key string) (int64, error)
func (*MockCounterList) GetListCapacity ¶
func (d *MockCounterList) GetListCapacity(key string) (int64, error)
func (*MockCounterList) GetListLength ¶
func (d *MockCounterList) GetListLength(key string) (int, error)
func (*MockCounterList) GetListValues ¶
func (d *MockCounterList) GetListValues(key string) ([]string, error)
func (*MockCounterList) IncrementCounter ¶
func (d *MockCounterList) IncrementCounter(key string, amount int64) error
func (*MockCounterList) ListContains ¶
func (d *MockCounterList) ListContains(key, value string) (bool, error)
func (*MockCounterList) SetCounterCapacity ¶
func (d *MockCounterList) SetCounterCapacity(key string, amount int64) error
func (*MockCounterList) SetCounterCount ¶
func (d *MockCounterList) SetCounterCount(key string, amount int64) error
func (*MockCounterList) SetListCapacity ¶
func (d *MockCounterList) SetListCapacity(key string, amount int64) error
Click to show internal directories.
Click to hide internal directories.