Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchItem = errors.New("store: item not found") ErrConcurrentUpdate = errors.New("store: concurrent update detected") )
Functions ¶
func HydrateMatch ¶
func HydrateMatch(state *matchmaking.Matchstate) *matchmaking.Match
Types ¶
type MatchStore ¶
type MatchStore struct {
// contains filtered or unexported fields
}
func NewMatchStore ¶
func NewMatchStore(store Store) *MatchStore
func (*MatchStore) Fetch ¶
func (m *MatchStore) Fetch(id string) (*matchmaking.Match, error)
func (*MatchStore) Save ¶
func (m *MatchStore) Save(match *matchmaking.Match) error
type Store ¶
type Store interface {
Fetch(id string) (*matchmaking.Matchstate, error)
Save(matchstate *matchmaking.Matchstate) error
Healthy() error
}
Click to show internal directories.
Click to hide internal directories.