middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func LoggerMiddleware

func LoggerMiddleware(logger *customLogger.Logger) gin.HandlerFunc

func RateLimiter

func RateLimiter(r rate.Limit, b int) gin.HandlerFunc

func VerifyToken

func VerifyToken() gin.HandlerFunc

Types

type Profile

type Profile struct {
	ID    string `json:"id"`
	Email string `json:"email"`
	Name  string `json:"name"`
}

Jump to

Keyboard shortcuts

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