middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store = session.New(session.Config{
	Expiration: 24 * time.Hour,
})

Authenticate and store user session

Functions

func AuthSessionMiddleware

func AuthSessionMiddleware(c *fiber.Ctx) error

AuthSessionMiddleware is a middleware to handle user sessions

func ClearSession

func ClearSession(c *fiber.Ctx) error

ClearSession clears the user session

func RequireAdmin

func RequireAdmin() fiber.Handler

Role based admin only access

func RequireAdminPrivileges

func RequireAdminPrivileges(c *fiber.Ctx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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