user

package
v0.0.0-...-5ac2c70 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllUsersFromDB

func GetAllUsersFromDB(db *sql.DB) ([]models.User, error)

func GetUserByUsername

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

GetUserByUsername retrieves a user record from the database based on the username

func Save

func Save(db *sql.DB, user models.User) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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