models

package
v0.0.0-...-b1f2603 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const (
	DBContextKey      = "database-context"
	SigningContextKey = "signing-context"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID           uuid.UUID
	Username     string
	PasswordHash []byte
}

func GetUserByUsername

func GetUserByUsername(db *sql.DB, username string) (User, error)

Jump to

Keyboard shortcuts

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