controllers

package
v0.0.0-...-9f96dd2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check() func(ctx *gin.Context)

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func Find

func Find(usersCollection *mongo.Collection) func(ctx *gin.Context)

TODO: Search function for username

func HashPassword

func HashPassword(password string) (string, error)

func Login

func Login(usersCollection *mongo.Collection) func(ctx *gin.Context)

func Logout

func Logout() func(ctx *gin.Context)

func Register

func Register(usersCollection *mongo.Collection) func(ctx *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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