Documentation ¶
Index ¶
- Constants
- func Auth(conf config.Auth) gin.HandlerFunc
- func BuildRateLimiter(conf config.RateLimiter) *limiter.Limiter
- func BuildRateLimiterMiddleware(l *limiter.Limiter) gin.HandlerFunc
- func CORS(conf config.Cors) gin.HandlerFunc
- func Identity(conf config.Identity) gin.HandlerFunc
- func RequestLogger() gin.HandlerFunc
- func Timeout(conf config.Timeout) gin.HandlerFunc
Constants ¶
View Source
const ( BASIC = "Basic" BEARER = "Bearer" )
Variables ¶
This section is empty.
Functions ¶
func Auth ¶ added in v0.15.0
func Auth(conf config.Auth) gin.HandlerFunc
The simplest-possible way to lock down routes
func BuildRateLimiter ¶
func BuildRateLimiter(conf config.RateLimiter) *limiter.Limiter
func BuildRateLimiterMiddleware ¶
func BuildRateLimiterMiddleware(l *limiter.Limiter) gin.HandlerFunc
func RequestLogger ¶
func RequestLogger() gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.