gamestrg

package
v0.0.0-...-383283c Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RedisClient *redis.Client `validate:"nonnil"`
}

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Storage, error)

func (*Storage) GetGame

func (s *Storage) GetGame(ctx context.Context, gameID string) (*core.Game, error)

func (*Storage) PutGame

func (s *Storage) PutGame(ctx context.Context, g core.Game) error

Jump to

Keyboard shortcuts

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