Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMutex = NewStringKeyLock()
Functions ¶
Types ¶
type CacheRecord ¶ added in v0.0.4
func (*CacheRecord) IsExpired ¶ added in v0.2.0
func (c *CacheRecord) IsExpired() bool
type Config ¶
type Config struct { FallbackOnStatusCodes string `json:"fallbackOnStatusCodes,omitempty"` FallbackURL string `json:"fallbackURL,omitempty"` FallbackStatusCode string `json:"fallbackStatusCode"` FallbackContentType string `json:"fallbackContentType,omitempty"` UpstreamTimeout string `json:"upstreamTimeout,omitempty"` CacheTTL string `json:"cacheTTL,omitempty"` }
Config the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type StringKeyLock ¶ added in v0.2.0
type StringKeyLock struct {
// contains filtered or unexported fields
}
func NewStringKeyLock ¶ added in v0.2.0
func NewStringKeyLock() *StringKeyLock
func (*StringKeyLock) Lock ¶ added in v0.2.0
func (l *StringKeyLock) Lock(key string)
func (*StringKeyLock) Unlock ¶ added in v0.2.0
func (l *StringKeyLock) Unlock(key string)
Click to show internal directories.
Click to hide internal directories.