middleware

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BearerSchema = "Bearer "

Variables

This section is empty.

Functions

func Auth added in v1.1.0

func Auth() gin.HandlerFunc

Auth is a middleware that checks if the request has a valid JWT token and then authorizes the request

func CORS

func CORS() gin.HandlerFunc

CORS is a middleware that adds CORS headers to the response

func Limiter

func Limiter() gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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