Documentation
¶
Overview ¶
Package cachecontrol creates a cache control echo middleware
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Skipper: middleware.DefaultSkipper, // contains filtered or unexported fields }
DefaultConfig is the default configuration of the middleware
Functions ¶
func New ¶
func New() echo.MiddlewareFunc
New creates a new middleware function with the default config
func NewWithConfig ¶
func NewWithConfig(config Config) echo.MiddlewareFunc
NewWithConfig returns a new router middleware handler
Types ¶
type Config ¶
type Config struct {
// Skipper defines a function to skip middleware
Skipper middleware.Skipper
// contains filtered or unexported fields
}
Config is the config values for the cache-control middleware
Click to show internal directories.
Click to hide internal directories.