Documentation ¶
Index ¶
- type User
- func (u *User) AddUserAuthDataToFirestore() error
- func (u *User) AddUserDataToDB() error
- func (u *User) AddUserDataToMongo() error
- func (u *User) FetchAndSetUUIDFromDB() error
- func (u *User) HashPassword() error
- func (u *User) UpdateUserAuthDataToFirestore() error
- func (u *User) UpdateUserDataToDB() error
- func (u *User) UpdateUserDataToMongo() error
- func (u *User) ValidateForm() (int, error)
- func (u *User) VerifyLoginData() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { UserName string `json:"userName" bson:"userName"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Phone string `json:"phone" bson:"phone"` Role string `json:"role" bson:"role"` UUID string `json:"uuid" bson:"uuid"` }
func (*User) AddUserAuthDataToFirestore ¶
func (*User) AddUserDataToDB ¶
func (*User) AddUserDataToMongo ¶
func (*User) FetchAndSetUUIDFromDB ¶
func (*User) HashPassword ¶
func (*User) UpdateUserAuthDataToFirestore ¶
func (*User) UpdateUserDataToDB ¶
func (*User) UpdateUserDataToMongo ¶
func (*User) ValidateForm ¶
func (*User) VerifyLoginData ¶
Click to show internal directories.
Click to hide internal directories.