middlewares

package
v0.0.0-...-c4fc964 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindDefaultControllerContexts

func BindDefaultControllerContexts(c *controllers.DefaultController) gin.HandlerFunc

bind neccessary infos to the controller

func CookieAuthenticator

func CookieAuthenticator(c *controllers.DefaultController) gin.HandlerFunc

Authenticate all users accessing routes within the use of this middleware. Sets `user_id` using `sessionToken` cookie.

Types

This section is empty.

Jump to

Keyboard shortcuts

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