Documentation
¶
Overview ¶
Package negative defines the Negative Cache which is a simple lookup map of httpStatus to TTL
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrInvalidConfig ¶
NewErrInvalidConfig returns a new invalid config error
Types ¶
type Config ¶
Config is a collection of response codes and their TTLs While the status code is numeric, it's deserialized here as a string for maximum compatibility with templating in Helm
type ConfigLookup ¶
ConfigLookup defines a Lookup map for a collection of Named Negative Cache Configs
func (ConfigLookup) ValidateAndCompile ¶
func (l ConfigLookup) ValidateAndCompile() (Lookups, error)
Validate verifies the Negative Cache Config
type ErrInvalidConfig ¶
type ErrInvalidConfig struct {
// contains filtered or unexported fields
}
ErrInvalidConfig is an error type for invalid config
Click to show internal directories.
Click to hide internal directories.