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: "info", } )
Functions ¶
This section is empty.
Types ¶
type SouinGoyaveMiddleware ¶
type SouinGoyaveMiddleware struct {
*middleware.SouinBaseHandler
}
SouinGoyaveMiddleware declaration.
func NewHTTPCache ¶
func NewHTTPCache(c middleware.BaseConfiguration) *SouinGoyaveMiddleware
func (*SouinGoyaveMiddleware) Handle ¶
func (s *SouinGoyaveMiddleware) Handle(next goyave.Handler) goyave.Handler
Click to show internal directories.
Click to hide internal directories.