Documentation
¶
Index ¶
- func CheckValidEmail(email string) bool
- func InitDb()
- func LoadEnv() error
- type DbInstance
- func (db *DbInstance) AddUserToPending(usr User, photo string) error
- func (db *DbInstance) ClosePostgres() error
- func (db *DbInstance) DoesUserExists(usr User, where string) (bool, error)
- func (db *DbInstance) GetUserData(username string) (*IUser, error)
- func (db *DbInstance) LoginUser(usr User) (bool, error)
- type IUser
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckValidEmail ¶
Types ¶
type DbInstance ¶
func (*DbInstance) AddUserToPending ¶
func (db *DbInstance) AddUserToPending(usr User, photo string) error
func (*DbInstance) ClosePostgres ¶
func (db *DbInstance) ClosePostgres() error
function to close the db connection.
func (*DbInstance) DoesUserExists ¶
func (db *DbInstance) DoesUserExists(usr User, where string) (bool, error)
func (*DbInstance) GetUserData ¶
func (db *DbInstance) GetUserData(username string) (*IUser, error)
Click to show internal directories.
Click to hide internal directories.