handlers

package
v0.0.0-...-c6f9d0c Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretKey = os.Getenv("TOKEN_SECRET")

Functions

func HandleHealthCheck

func HandleHealthCheck(c *fiber.Ctx) error

func HandleIsAuthenticated

func HandleIsAuthenticated(c *fiber.Ctx, db *database.Database) error

Check authentication handler

func HandleLogin

func HandleLogin(c *fiber.Ctx, db *database.Database) error

Login handler

func HandleLogout

func HandleLogout(c *fiber.Ctx, db *database.Database) error

Logout handler

func HandleRegister

func HandleRegister(c *fiber.Ctx, db *database.Database) error

Register handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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