logs

package
v0.0.0-...-1965a00 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	Day              string
	ID               int
	Timestamp        time.Time
	Size             int
	Player1, Player2 string
	Result           string
	Winner           string
	Moves            int
}

type Repository

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

func Open

func Open(db string) (*Repository, error)

func (*Repository) Close

func (r *Repository) Close()

func (*Repository) DB

func (r *Repository) DB() *sql.DB

func (*Repository) InsertGame

func (r *Repository) InsertGame(g *Game) error

func (*Repository) InsertGames

func (r *Repository) InsertGames(gs []*Game) error

Jump to

Keyboard shortcuts

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