database

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: GPL-2.0 Imports: 5 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(db *gorm.DB, username string, password string, email *string, active bool) (*utilitymodels.User, error)

CreateUser Helper method to create a user. bcrypt with a cost of 12 is used as hash.

func Initialize

func Initialize(dial gorm.Dialector, models ...interface{}) *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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