db

package
v0.0.0-...-e8b216b Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

func NewSession

func NewSession(db *sql.DB) *Session

func (*Session) PuzzleCreate

func (session *Session) PuzzleCreate(p *model.Puzzle) (id string, err error)

func (*Session) PuzzleGetById

func (session *Session) PuzzleGetById(id string) (p model.Puzzle, err error)

func (*Session) RandString

func (session *Session) RandString(n int) string

func (*Session) SolutionCreate

func (session *Session) SolutionCreate(s *model.Solution) (id string, err error)

func (*Session) SolutionFind

func (session *Session) SolutionFind() (ids []model.SolutionMetadata, err error)

func (*Session) SolutionGetById

func (session *Session) SolutionGetById(id string) (s model.Solution, err error)

func (*Session) SolutionUpdate

func (session *Session) SolutionUpdate(s model.Solution) (out model.Solution, err error)

Jump to

Keyboard shortcuts

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