Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HexEscapeNonASCII ¶
HexEscapeNonASCII - taken directly from the Go source - encodes a string for use in a Location: header.
func PathRewriteMiddleware ¶
func PathRewriteMiddleware(cfg *PathRewriteType, base string, dbF map[string]bool, lgr *zap.Logger, xmd *metrics.MetricsData) func(c *gin.Context)
Types ¶
type PathFromToType ¶
type PathRewriteType ¶
type PathRewriteType struct {
PathRewrite []PathFromToType `json:"path_rewrite"`
}
Click to show internal directories.
Click to hide internal directories.