middleware

package
v0.0.0-...-47d78cf Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

func Authorize() gin.HandlerFunc

func CORS

func CORS() gin.HandlerFunc

func CreateToken

func CreateToken(user models.User) (string, time.Time, error)

func Logger

func Logger() gin.HandlerFunc

func Security

func Security() gin.HandlerFunc

Security middleware

func Throttle

func Throttle() gin.HandlerFunc

func TokenValid

func TokenValid(bearerToken string) (*jwt.Token, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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