providers

package
v0.0.0-...-d399288 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudflareSurrogateStorage

type CloudflareSurrogateStorage struct {
	// contains filtered or unexported fields
}

CloudflareSurrogateStorage is the layer for Surrogate-key support storage

func (CloudflareSurrogateStorage) Destruct

func (s CloudflareSurrogateStorage) Destruct() error

Destruct method will shutdown properly the provider

func (CloudflareSurrogateStorage) GetSurrogateControl

func (s CloudflareSurrogateStorage) GetSurrogateControl(header http.Header) string

func (CloudflareSurrogateStorage) List

func (s CloudflareSurrogateStorage) List() map[string]string

List returns the stored keys associated to resources

func (CloudflareSurrogateStorage) ParseHeaders

func (s CloudflareSurrogateStorage) ParseHeaders(value string) []string

func (*CloudflareSurrogateStorage) Purge

func (c *CloudflareSurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)

Purge purges the urls associated to the tags

func (*CloudflareSurrogateStorage) Store

func (c *CloudflareSurrogateStorage) Store(response *http.Response, cacheKey string) error

Store stores the response tags located in the first non empty supported header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL