data

package
v0.0.0-...-cc36037 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Unlicense Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MysqlStore

type MysqlStore struct {
	DB *sql.DB
}

func (MysqlStore) GetMatch

func (store MysqlStore) GetMatch(ctx context.Context, matchID string) (model.Match, error)

func (MysqlStore) GetMatches

func (store MysqlStore) GetMatches(ctx context.Context, userID string) ([]model.Match, error)

func (MysqlStore) SaveMatch

func (store MysqlStore) SaveMatch(ctx context.Context, match model.Match) (model.Match, error)

type Store

type Store interface {
	SaveMatch(ctx context.Context, match model.Match) (model.Match, error)
	GetMatches(ctx context.Context, userID string) ([]model.Match, error)
	GetMatch(ctx context.Context, matchID string) (model.Match, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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