entities

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserEntity

type UserEntity struct {
	Id        int         `json:"id"`
	Display   string      `json:"display"`
	Email     string      `json:"email"`
	Score     int         `json:"score"`
	Numbers   UserNumbers `json:"numbers"`
	Timestamp int         `json:"timestamp"`
	// contains filtered or unexported fields
}

func (*UserEntity) CalculateScore

func (u *UserEntity) CalculateScore() int

func (*UserEntity) CheckChosenNumbers

func (u *UserEntity) CheckChosenNumbers(numbers []int) error

func (*UserEntity) GetPassword

func (u *UserEntity) GetPassword() string

func (*UserEntity) ParseNumbersForDB

func (u *UserEntity) ParseNumbersForDB() (string, error)

func (*UserEntity) ParseNumbersFromDB

func (u *UserEntity) ParseNumbersFromDB(raw string) (UserNumbers, error)

func (*UserEntity) SetPassword

func (u *UserEntity) SetPassword(password string) *UserEntity

func (*UserEntity) VerifyPassword

func (u *UserEntity) VerifyPassword(password string, passwordConfirm string) bool

type UserNumbers

type UserNumbers map[int]bool

Jump to

Keyboard shortcuts

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