Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func GetUserIdByUsername ¶
func HashPassword ¶
Types ¶
type User ¶
type User struct { ID string `json:"id"` Username string `json:"name"` Password string `json:"password"` }
func (*User) Authenticate ¶
type WrongUsernameOrPasswordErr ¶
type WrongUsernameOrPasswordErr struct{}
func (*WrongUsernameOrPasswordErr) Error ¶
func (m *WrongUsernameOrPasswordErr) Error() string
Click to show internal directories.
Click to hide internal directories.