Documentation
¶
Index ¶
- func DeleteMetadata(method string, url url.URL) error
- func FetchMetadata(method string, url url.URL) ([]string, error)
- func GetVary(headers http.Header) ([]string, error)
- func PurgeMetadata(url url.URL) error
- func StorageKey(method string, url url.URL, meta []string, reqHeaders http.Header) string
- func StoreMetadata(method string, url url.URL, meta []string, expiration time.Duration) (bool, error)
- type CacheObj
- func (c CacheObj) IsMethodAllowed() bool
- func (c CacheObj) IsStatusAllowed() bool
- func (c CacheObj) IsValid() (bool, error)
- func (c CacheObj) PurgeFullPage(method string, url url.URL) (bool, error)
- func (c *CacheObj) RetrieveFullPage(method string, url url.URL, reqHeaders http.Header) error
- func (c CacheObj) StoreFullPage(expiration time.Duration) (bool, error)
- type URIObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMetadata ¶
DeleteMetadata - Removes the cache metadata for the requested URL.
func FetchMetadata ¶
FetchMetadata - Returns the cache metadata for the requested URL.
func PurgeMetadata ¶
PurgeMetadata - Purges the cache metadata for the requested URL.
func StorageKey ¶
StorageKey - Returns the cache key for the requested URL.
Types ¶
type CacheObj ¶
CacheObj - Contains cache settings and current cached/cacheable object.
func (CacheObj) IsMethodAllowed ¶
IsMethodAllowed - Checks if a HTTP method is allowed to be cached.
func (CacheObj) IsStatusAllowed ¶
IsStatusAllowed - Checks if a status code is allowed to be cached.
func (CacheObj) PurgeFullPage ¶
PurgeFullPage - Deletes the whole page response from cache.
func (*CacheObj) RetrieveFullPage ¶
RetrieveFullPage - Retrieves the whole page response from cache.
Click to show internal directories.
Click to hide internal directories.