database

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: GPL-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocalUser added in v0.3.0

func CreateLocalUser(db *gorm.DB, username string, password string, email *string) (*utilitymodels.LocalUser, error)

CreateLocalUser 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