models

package
v0.0.0-...-e1932af Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameModel

type GameModel struct {
}

func Game

func Game() *GameModel

func (*GameModel) Activate

func (g *GameModel) Activate() error

func (*GameModel) IsLocked

func (g *GameModel) IsLocked() bool

func (*GameModel) Reset

func (g *GameModel) Reset() error

type NumberModel

type NumberModel struct{}

func Number

func Number() *NumberModel

func (*NumberModel) CheckCalledNumbers

func (n *NumberModel) CheckCalledNumbers(numbers []int) error

func (*NumberModel) List

func (*NumberModel) Next

func (n *NumberModel) Next() int

type NumberOrder

type NumberOrder []int

type NumberRecord

type NumberRecord struct {
	Value     int `json:"value"`
	Timestamp int `json:"timestamp"`
}

type NumberTimestamp

type NumberTimestamp map[int]int

type UserModel

type UserModel struct{}

func User

func User() *UserModel

func (*UserModel) Add

func (*UserModel) Get

func (u *UserModel) Get(email string, password string) (entities.UserEntity, error)

func (*UserModel) UpdateNumbers

func (u *UserModel) UpdateNumbers(e *entities.UserEntity, numbers []int) error

Jump to

Keyboard shortcuts

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