Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfiguration = middleware.BaseConfiguration{ DefaultCache: &configurationtypes.DefaultCache{ TTL: configurationtypes.Duration{ Duration: 10 * time.Second, }, }, LogLevel: "info", } DevDefaultConfiguration = middleware.BaseConfiguration{ API: configurationtypes.API{ BasePath: "/souin-api", Prometheus: configurationtypes.APIEndpoint{ Enable: true, }, Souin: configurationtypes.APIEndpoint{ Enable: true, }, }, DefaultCache: &configurationtypes.DefaultCache{ Regex: configurationtypes.Regex{ Exclude: "/excluded", }, TTL: configurationtypes.Duration{ Duration: 5 * time.Second, }, }, LogLevel: "debug", } )
Functions ¶
func NewHTTPCache ¶
func NewHTTPCache(c middleware.BaseConfiguration) app.HandlerFunc
Types ¶
type SouinHertzMiddleware ¶
type SouinHertzMiddleware struct {
*middleware.SouinBaseHandler
}
SouinHertzMiddleware declaration.
Click to show internal directories.
Click to hide internal directories.