repository

package
v0.0.0-...-4eb35ab Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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