storage

package
v0.0.0-...-eba09fc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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