middlewares

package
v0.0.0-...-a4a49b0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(id primitive.ObjectID) (string, error)

func GetSlotPosition

func GetSlotPosition(Slot string) ([]int, error)

func IsAuth

func IsAuth(endpoint func(c *gin.Context, token *jwt.Token)) gin.HandlerFunc

func RateLimitHandler

func RateLimitHandler(c *gin.Context)

func RateLimitMiddleware

func RateLimitMiddleware() 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