Documentation ¶
Index ¶
- func AddUser(email, password, firstName, lastName string) error
- func ChangeLoginStatus(email string)
- func CheckAuth(email, password string) (bool, error)
- func CheckLogin(email string) (bool, error)
- func CleanAllStatus()
- func CloseDB()
- func DeleteUser()
- func EncodePassword(cleartext string) string
- func ExistUserByEmail(email string) (bool, error)
- func FindUser(u []byte) (interface{}, error)
- func FindUserByEmail(email string) ([]byte, error)
- type Model
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeLoginStatus ¶
func ChangeLoginStatus(email string)
func CleanAllStatus ¶
func CleanAllStatus()
func DeleteUser ¶
func DeleteUser()
func EncodePassword ¶
func ExistUserByEmail ¶
ExistUserByEmail checks if ther has a user with same email
func FindUserByEmail ¶
Types ¶
type User ¶
type User struct { UserID string `json:"id"` Username string `json:"username"` Email string `json:"email"` Password string `json:"password"` FirstName string `json:"firstName"` LastName string `json:"lastName"` ProfileImage string `json:"profileImage"` Key string `json:"key"` IsLogin bool `json:"isLogin"` }
User struct is full table of user
Click to show internal directories.
Click to hide internal directories.