Documentation ¶
Index ¶
- func CORSMiddleware() gin.HandlerFunc
- func CopyBodyMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
- func EmptyMiddleware() gin.HandlerFunc
- func JoinRouter(method, path string) string
- func LoggerMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
- func NewTraceID() string
- 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
- type SkipperFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
func CopyBodyMiddleware ¶
func CopyBodyMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
func EmptyMiddleware ¶
func EmptyMiddleware() gin.HandlerFunc
func JoinRouter ¶
func LoggerMiddleware ¶
func LoggerMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
func NewTraceID ¶
func NewTraceID() string
func NoMethodHandler ¶
func NoMethodHandler() gin.HandlerFunc
func NoRouteHandler ¶
func NoRouteHandler() gin.HandlerFunc
func RateLimiterMiddleware ¶
func RateLimiterMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
func RecoveryMiddleware ¶
func RecoveryMiddleware() gin.HandlerFunc
func SkipHandler ¶
func SkipHandler(c *gin.Context, skippers ...SkipperFunc) bool
func TraceMiddleware ¶
func TraceMiddleware(skippers ...SkipperFunc) gin.HandlerFunc
Types ¶
type SkipperFunc ¶
func AllowMethodAndPathPrefixSkipper ¶
func AllowMethodAndPathPrefixSkipper(prefixes ...string) SkipperFunc
func AllowPathPrefixNoSkipper ¶
func AllowPathPrefixNoSkipper(prefixes ...string) SkipperFunc
func AllowPathPrefixSkipper ¶
func AllowPathPrefixSkipper(prefixes ...string) SkipperFunc
Source Files ¶
Click to show internal directories.
Click to hide internal directories.