middleware

package
v0.0.0-...-51970bc Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const BEARER_SCHEMA = "Bearer "

Variables

View Source
var IdentityKey = "identity"

Functions

func Auth

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