middleware

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware(router *gin.Engine, config cors.Config)

func CSRF added in v0.1.1

func CSRF() gin.HandlerFunc

func CSRFMiddleware

func CSRFMiddleware(router *gin.Engine)

func CSRFToken

func CSRFToken() gin.HandlerFunc

func LimitMiddleware

func LimitMiddleware(router *gin.Engine, limit int)

func TokenAuthMiddleware

func TokenAuthMiddleware(router *gin.Engine, token string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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