Documentation ¶
Overview ¶
Package middleware defines all the middlewares for the application
Index ¶
Constants ¶
View Source
const UserIDKey = "UserID"
Variables ¶
View Source
var SessionIdentifierKey = "SESSION_IDENTIFIER"
Functions ¶
func Auth ¶
func Auth() gin.HandlerFunc
func Cache ¶
func Cache() gin.HandlerFunc
func General ¶
func General() gin.HandlerFunc
General handles the default headers that should be present in every response
func NoAuth ¶
func NoAuth() gin.HandlerFunc
NoAuth is for routes that can only be accessed when the user is unauthenticated
func Sensitive ¶
func Sensitive() gin.HandlerFunc
Sensitive middleware handles headers that should be set for routes that may contain sensitive data such as personal information
func Throttle ¶
func Throttle(limit int) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.