Documentation ¶
Index ¶
- type PostgresStore
- func (s *PostgresStore) Close() error
- func (s *PostgresStore) InsertHistory(ctx context.Context, entryType string, gameId string, gs *pb.GameState) error
- func (s *PostgresStore) InsertStats(ctx context.Context, stats *hexz.WASMStatsRequest) error
- func (s *PostgresStore) LoadGame(ctx context.Context, gameId string) (*pb.GameState, error)
- func (s *PostgresStore) NextGameState(ctx context.Context, gameId string) (*pb.GameState, error)
- func (s *PostgresStore) PreviousGameState(ctx context.Context, gameId string) (*pb.GameState, error)
- func (s *PostgresStore) StoreGame(ctx context.Context, hostId string, gs *pb.GameState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func NewPostgresStore ¶
func NewPostgresStore(ctx context.Context, database_url string) (*PostgresStore, error)
func (*PostgresStore) Close ¶
func (s *PostgresStore) Close() error
func (*PostgresStore) InsertHistory ¶
func (*PostgresStore) InsertStats ¶
func (s *PostgresStore) InsertStats(ctx context.Context, stats *hexz.WASMStatsRequest) error
func (*PostgresStore) NextGameState ¶
func (*PostgresStore) PreviousGameState ¶
Click to show internal directories.
Click to hide internal directories.