Documentation ¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) CollectCaches(name endure.Named, cache cache.HTTPCacheFromConfig)
- func (p *Plugin) Collects() []interface{}
- func (p *Plugin) Init(cfg config.Configurer, log *zap.Logger) error
- func (p *Plugin) Middleware(next http.Handler) http.Handler
- func (p *Plugin) Name() string
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Driver name Driver string `mapstructure:"driver"` // Only get by default CacheMethods []string `mapstructure:"cache_methods"` // Driver specific configuration Config interface{} `mapstructure:"config"` }
func (*Config) InitDefaults ¶
func (c *Config) InitDefaults()
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CollectCaches ¶
func (p *Plugin) CollectCaches(name endure.Named, cache cache.HTTPCacheFromConfig)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.