database

package
v0.0.0-...-9ffdc33 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBConn *gorm.DB
)

Exports

Functions

func AutoMigrate

func AutoMigrate()

AutoMigrate will start mysql db migration

func ConnectDB

func ConnectDB()

ConnectDB instantiates a mongoDB connection

func DoesUserExistByEmailAndPassword

func DoesUserExistByEmailAndPassword(email string, password string) (models.User, error)

DoesUserExistByEmailAndPassword searches for a user, given the email and password

func SaveUser

func SaveUser(user *models.User) models.HTTPErrorStatus

SaveUser saves a user in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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