Documentation ¶
Index ¶
- Constants
- func CORS() gin.HandlerFunc
- func CreateJobRateLimiter(limiter ratelimiter.JobRateLimiter) gin.HandlerFunc
- func Error() gin.HandlerFunc
- func Jwt(cfg config.JWTConfig, service service.Service) (*jwt.GinJWTMiddleware, error)
- func PersonalAccessToken(gdb *gorm.DB) gin.HandlerFunc
- func RBAC(e *casbin.Enforcer) gin.HandlerFunc
- func Server() gin.HandlerFunc
- type ErrorResponse
Constants ¶
View Source
const ServerIP = "X-Server-IP"
Variables ¶
This section is empty.
Functions ¶
func CORS ¶ added in v2.0.30
func CORS() gin.HandlerFunc
func CreateJobRateLimiter ¶ added in v2.1.63
func CreateJobRateLimiter(limiter ratelimiter.JobRateLimiter) gin.HandlerFunc
func Error ¶
func Error() gin.HandlerFunc
func PersonalAccessToken ¶ added in v2.0.30
func PersonalAccessToken(gdb *gorm.DB) gin.HandlerFunc
func RBAC ¶
func RBAC(e *casbin.Enforcer) gin.HandlerFunc
func Server ¶ added in v2.1.57
func Server() gin.HandlerFunc
Types ¶
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.