middlewares

package
v0.0.0-...-48f0708 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

JWT ...

Functions

func InitJWT

func InitJWT() (*jwt.GinJWTMiddleware, error)

InitJWT : create auth middleware

func SecureFunc

func SecureFunc() gin.HandlerFunc

SecureFunc : custom middleware

func TokenAuthMiddleware

func TokenAuthMiddleware() gin.HandlerFunc

TokenAuthMiddleware ...

func UpdateContextUserModel

func UpdateContextUserModel(c *gin.Context, myUserID uint)

UpdateContextUserModel : A helper to write user_id and user_model to the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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