persistence

package
v0.0.0-...-6d5b5b3 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type SQLDBConfig

type SQLDBConfig struct {
	Host         string
	Port         int
	User         string
	Pass         string
	DBName       string
	MaxOpenConns int
}

type TicTacToe

type TicTacToe interface {
	GetAllGames() ([]*models.Game, error)
	GetGameById(id string) (*models.Game, error)
	CreateGame(game *models.Game) error
	UpdateGame(game *models.Game) error
	DeleteGame(id string) error

	Close() error
	Check() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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