model

package
v0.0.0-...-453a85f Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func SetDBClient

func SetDBClient()

Types

type User

type User struct {
	Email    string `json:"email" gorm:"unique"`
	Password string `json:"password"`
}

func (*User) CheckPasswordHash

func (u *User) CheckPasswordHash(password string) bool

func (*User) GeneratePasswordHash

func (u *User) GeneratePasswordHash() error

Jump to

Keyboard shortcuts

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