user

package
v0.0.0-...-61cdbde Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 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 {
	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 (u *User) AddUserAuthDataToFirestore() error

func (*User) AddUserDataToDB

func (u *User) AddUserDataToDB() error

func (*User) AddUserDataToMongo

func (u *User) AddUserDataToMongo() error

func (*User) FetchAndSetUUIDFromDB

func (u *User) FetchAndSetUUIDFromDB() error

func (*User) HashPassword

func (u *User) HashPassword() error

func (*User) UpdateUserAuthDataToFirestore

func (u *User) UpdateUserAuthDataToFirestore() error

func (*User) UpdateUserDataToDB

func (u *User) UpdateUserDataToDB() error

func (*User) UpdateUserDataToMongo

func (u *User) UpdateUserDataToMongo() error

func (*User) ValidateForm

func (u *User) ValidateForm() (int, error)

func (*User) VerifyLoginData

func (u *User) VerifyLoginData() (bool, error)

Jump to

Keyboard shortcuts

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