Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGameStoreNotEnabled = fmt.Errorf("game store is not enabled") ErrGameStoreNotFound = fmt.Errorf("no game found in game store") ErrGameStoreConnection = fmt.Errorf("failed to connect to game store") ErrGameStoreSelect = fmt.Errorf("failed to select from game store") ErrGameStoreInsert = fmt.Errorf("failed to insert into game store") )
Functions ¶
This section is empty.
Types ¶
type CockroachClient ¶ added in v1.3.0
type CockroachClient struct {
// contains filtered or unexported fields
}
func NewCockroachClient ¶ added in v1.3.0
func NewCockroachClient(config *CockroachConfig) (*CockroachClient, error)
func (*CockroachClient) Close ¶ added in v1.3.0
func (c *CockroachClient) Close(ctx context.Context) error
func (*CockroachClient) GetGame ¶ added in v1.3.0
func (c *CockroachClient) GetGame(gameKey, gameID string) (*Game, error)
func (*CockroachClient) GetStats ¶ added in v1.3.0
func (c *CockroachClient) GetStats(games []string) (*Stats, error)
func (*CockroachClient) Store ¶ added in v1.3.0
func (c *CockroachClient) Store(game *Game) error
type CockroachConfig ¶ added in v1.3.0
type CockroachConfig struct { Enabled bool Host string Username string Password string Database string SSLMode string }
func (*CockroachConfig) GetURL ¶ added in v1.3.0
func (c *CockroachConfig) GetURL() string
type DatastoreConfig ¶
type DatastoreConfig struct {
Cockroach CockroachConfig
}
Click to show internal directories.
Click to hide internal directories.