model

package
v0.0.0-...-c1e9038 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(username, email, password string) error

CreateUser creates a new user

func GetUserCredential

func GetUserCredential(email string) (*views.Credentials, error)

GetUserCredential gets the existing entry present in the database for the given username

func InitDB

func InitDB() *sql.DB

InitDB establishes the database connection

Types

This section is empty.

Jump to

Keyboard shortcuts

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