Documentation ¶
Index ¶
Constants ¶
View Source
const BoardSuffix = "-Board"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameRepository ¶
type GameRepository interface { SaveGame(game *types.Game) (*types.Game, error) SaveUser(game *types.User) (*types.User, error) GetGame(key string) (*types.Game, error) GetUser(key string) (*types.User, error) Exists(key string) bool Delete(key string) error }
func NewRedisRepository ¶
func NewRedisRepository() GameRepository
creates a new redis repo with a connection
Click to show internal directories.
Click to hide internal directories.