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 ¶
This section is empty.
Types ¶
type SouinFiberMiddleware ¶
type SouinFiberMiddleware struct {
*middleware.SouinBaseHandler
}
SouinFiberMiddleware declaration.
func NewHTTPCache ¶
func NewHTTPCache(c middleware.BaseConfiguration) *SouinFiberMiddleware
func (*SouinFiberMiddleware) Handle ¶
func (s *SouinFiberMiddleware) Handle(c *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.