store

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EngineInfoStore

type EngineInfoStore interface {
	FindAll(engine.ID) usi.Result
	Upsert(engine.ID, int, *usi.Info)
	DeleteAll(engine.ID)
}

EngineInfoStore is a in memory store for information given from shogi engines.

func NewEngineInfoStore

func NewEngineInfoStore() EngineInfoStore

type EngineStore

type EngineStore interface {
	Insert(*engine.Engine, infrastructure.Connector) error
	Delete(engine.ID) error
	Find(engine.ID) (*engine.Engine, infrastructure.Connector, bool)
	FindAllKeys() []engine.ID
	Exists(engine.ID) bool
}

EngineStore is a in memory store for shogi engines.

func NewEngineStore

func NewEngineStore() EngineStore

type GameStore

type GameStore interface {
	FindPosition(engine.ID) (*shogi.Position, bool)
	UpsertPosition(engine.ID, *shogi.Position)
	DeletePosition(engine.ID)
}

GameStore is a in memory store that holds game state.

func NewGameStore

func NewGameStore() GameStore

Jump to

Keyboard shortcuts

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