Documentation ¶
Index ¶
- type UserEntity
- func (u *UserEntity) CalculateScore() int
- func (u *UserEntity) CheckChosenNumbers(numbers []int) error
- func (u *UserEntity) GetPassword() string
- func (u *UserEntity) ParseNumbersForDB() (string, error)
- func (u *UserEntity) ParseNumbersFromDB(raw string) (UserNumbers, error)
- func (u *UserEntity) SetPassword(password string) *UserEntity
- func (u *UserEntity) VerifyPassword(password string, passwordConfirm string) bool
- type UserNumbers
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 ¶
Click to show internal directories.
Click to hide internal directories.