Documentation ¶
Index ¶
- func KeyParser() gin.HandlerFunc
- func Metrics(c *gin.Context)
- func NewLogger(logger *slog.Logger) gin.HandlerFunc
- func OperationParser() gin.HandlerFunc
- func ParametersParser() gin.HandlerFunc
- func Recover(c *gin.Context)
- func RestrictIPAddresses(ipAddresses []string) gin.HandlerFunc
- func RestrictSizes(sizes []config.AllowedSize) gin.HandlerFunc
- func Route(route string) gin.HandlerFunc
- func Security(secretKey string) gin.HandlerFunc
- func URLParser(mimetypeDetectorType string, processor *picfit.Processor) gin.HandlerFunc
- type RouteKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyParser ¶
func KeyParser() gin.HandlerFunc
KeyParser injects an unique key from query parameters
func OperationParser ¶
func OperationParser() gin.HandlerFunc
OperationParser extracts the operation and add it to the context
func ParametersParser ¶
func ParametersParser() gin.HandlerFunc
ParametersParser matches parameters to query string
func RestrictIPAddresses ¶
func RestrictIPAddresses(ipAddresses []string) gin.HandlerFunc
func RestrictSizes ¶
func RestrictSizes(sizes []config.AllowedSize) gin.HandlerFunc
func Route ¶
func Route(route string) gin.HandlerFunc
func Security ¶
func Security(secretKey string) gin.HandlerFunc
Security wraps the request and confront sent parameters with secret key
Types ¶
Click to show internal directories.
Click to hide internal directories.