Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalRules ¶
type InternalRules struct { // Request related NoReqExt []string NoReqPathPrefix []string NoReqPathSuffix []string NoReqPathContains []string NoReqCookieContains []string NoReqHeaders map[string]string // Headers that condition the cache, blacklist RespHeadersBlackList map[string][]string RespContentTypeTTL map[string]time.Duration RespContentTypeTTLString map[string]string RespStatusCodeTTL map[int]time.Duration RespStatusCodeTTLString map[string]string }
func (*InternalRules) IsReqCachable ¶
func (ir *InternalRules) IsReqCachable(req *http.Request) (ok bool, refresh bool)
func (*InternalRules) IsRespCachable ¶
func (*InternalRules) Parse ¶
func (ir *InternalRules) Parse() error
Parse will read the string values and convert to time.Duration
type Rules ¶
type Rules struct { InternalRules Domain map[string]InternalRules }
Click to show internal directories.
Click to hide internal directories.