entity

package
v0.0.0-...-50d91fd Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 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 User

type User struct {
	ID       string
	Username string
	Password string
}

User entity

func (*User) GenID

func (e *User) GenID() (err error)

GenID to generate ID

func (*User) HashPassword

func (e *User) HashPassword() error

HashPassword user.Password <- hash(user.Password)

Jump to

Keyboard shortcuts

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