Documentation ¶
Index ¶
- func Check() func(ctx *gin.Context)
- func CheckPasswordHash(password, hash string) bool
- func Find(usersCollection *mongo.Collection) func(ctx *gin.Context)
- func HashPassword(password string) (string, error)
- func Login(usersCollection *mongo.Collection) func(ctx *gin.Context)
- func Logout() func(ctx *gin.Context)
- func Register(usersCollection *mongo.Collection) func(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func Find ¶
func Find(usersCollection *mongo.Collection) func(ctx *gin.Context)
TODO: Search function for username
func HashPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.