Versions in this module Expand all Collapse all v0 v0.1.0 Dec 3, 2019 Changes in this version + func CORSMiddleware() gin.HandlerFunc + func CasbinMiddleware(enforcer *casbin.SyncedEnforcer, skippers ...SkipperFunc) gin.HandlerFunc + func EmptyMiddleware() gin.HandlerFunc + func JoinRouter(method, path string) string + func LoggerMiddleware(skippers ...SkipperFunc) gin.HandlerFunc + func NoMethodHandler() gin.HandlerFunc + func NoRouteHandler() gin.HandlerFunc + func RateLimiterMiddleware(skippers ...SkipperFunc) gin.HandlerFunc + func RecoveryMiddleware() gin.HandlerFunc + func SkipHandler(c *gin.Context, skippers ...SkipperFunc) bool + func TraceMiddleware(skippers ...SkipperFunc) gin.HandlerFunc + func UserAuthMiddleware(a auth.Auther, skippers ...SkipperFunc) gin.HandlerFunc + func WWWMiddleware(root string, skippers ...SkipperFunc) gin.HandlerFunc + type SkipperFunc func(*gin.Context) bool + func AllowMethodAndPathPrefixSkipper(prefixes ...string) SkipperFunc + func AllowPathPrefixNoSkipper(prefixes ...string) SkipperFunc + func AllowPathPrefixSkipper(prefixes ...string) SkipperFunc