Documentation ¶
Index ¶
- type AkamaiSurrogateStorage
- func (s AkamaiSurrogateStorage) Destruct() error
- func (s AkamaiSurrogateStorage) GetSurrogateControl(header http.Header) (string, string)
- func (s AkamaiSurrogateStorage) GetSurrogateControlName() string
- func (s AkamaiSurrogateStorage) Invalidate(method string, headers http.Header)
- func (s AkamaiSurrogateStorage) List() map[string]string
- func (s AkamaiSurrogateStorage) ParseHeaders(value string) []string
- func (a *AkamaiSurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)
- func (a *AkamaiSurrogateStorage) Store(response *http.Response, cacheKey, uri string) error
- type CloudflareSurrogateStorage
- func (s CloudflareSurrogateStorage) Destruct() error
- func (s CloudflareSurrogateStorage) GetSurrogateControl(header http.Header) (string, string)
- func (s CloudflareSurrogateStorage) GetSurrogateControlName() string
- func (s CloudflareSurrogateStorage) Invalidate(method string, headers http.Header)
- func (s CloudflareSurrogateStorage) List() map[string]string
- func (s CloudflareSurrogateStorage) ParseHeaders(value string) []string
- func (c *CloudflareSurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)
- func (c *CloudflareSurrogateStorage) Store(response *http.Response, cacheKey, uri string) error
- type FastlySurrogateStorage
- func (s FastlySurrogateStorage) Destruct() error
- func (s FastlySurrogateStorage) GetSurrogateControl(header http.Header) (string, string)
- func (s FastlySurrogateStorage) GetSurrogateControlName() string
- func (s FastlySurrogateStorage) Invalidate(method string, headers http.Header)
- func (s FastlySurrogateStorage) List() map[string]string
- func (s FastlySurrogateStorage) ParseHeaders(value string) []string
- func (f *FastlySurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)
- func (s FastlySurrogateStorage) Store(response *http.Response, cacheKey, _ string) error
- type SouinSurrogateStorage
- func (s SouinSurrogateStorage) Destruct() error
- func (s SouinSurrogateStorage) GetSurrogateControl(header http.Header) (string, string)
- func (s SouinSurrogateStorage) GetSurrogateControlName() string
- func (s SouinSurrogateStorage) Invalidate(method string, headers http.Header)
- func (s SouinSurrogateStorage) List() map[string]string
- func (s SouinSurrogateStorage) ParseHeaders(value string) []string
- func (s SouinSurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)
- func (s SouinSurrogateStorage) Store(response *http.Response, cacheKey, _ string) error
- type SurrogateInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AkamaiSurrogateStorage ¶
type AkamaiSurrogateStorage struct {
// contains filtered or unexported fields
}
AkamaiSurrogateStorage is the layer for Surrogate-key support storage
func (AkamaiSurrogateStorage) Destruct ¶
func (s AkamaiSurrogateStorage) Destruct() error
Destruct method will shutdown properly the provider
func (AkamaiSurrogateStorage) GetSurrogateControl ¶
func (AkamaiSurrogateStorage) GetSurrogateControlName ¶
func (s AkamaiSurrogateStorage) GetSurrogateControlName() string
func (AkamaiSurrogateStorage) Invalidate ¶
Invalidate the grouped responses from the Cache-Group-Invalidation HTTP response header
func (AkamaiSurrogateStorage) ParseHeaders ¶
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 (CloudflareSurrogateStorage) GetSurrogateControlName ¶
func (s CloudflareSurrogateStorage) GetSurrogateControlName() string
func (CloudflareSurrogateStorage) Invalidate ¶
Invalidate the grouped responses from the Cache-Group-Invalidation HTTP response header
func (CloudflareSurrogateStorage) ParseHeaders ¶
type FastlySurrogateStorage ¶
type FastlySurrogateStorage struct {
// contains filtered or unexported fields
}
FastlySurrogateStorage is the layer for Surrogate-key support storage
func (FastlySurrogateStorage) Destruct ¶
func (s FastlySurrogateStorage) Destruct() error
Destruct method will shutdown properly the provider
func (FastlySurrogateStorage) GetSurrogateControl ¶
func (FastlySurrogateStorage) GetSurrogateControlName ¶
func (s FastlySurrogateStorage) GetSurrogateControlName() string
func (FastlySurrogateStorage) Invalidate ¶
Invalidate the grouped responses from the Cache-Group-Invalidation HTTP response header
func (FastlySurrogateStorage) ParseHeaders ¶
type SouinSurrogateStorage ¶
type SouinSurrogateStorage struct {
// contains filtered or unexported fields
}
SouinSurrogateStorage is the layer for Surrogate-key support storage
func (SouinSurrogateStorage) Destruct ¶
func (s SouinSurrogateStorage) Destruct() error
Destruct method will shutdown properly the provider
func (SouinSurrogateStorage) GetSurrogateControl ¶
func (SouinSurrogateStorage) GetSurrogateControlName ¶
func (s SouinSurrogateStorage) GetSurrogateControlName() string
func (SouinSurrogateStorage) Invalidate ¶
Invalidate the grouped responses from the Cache-Group-Invalidation HTTP response header
func (SouinSurrogateStorage) ParseHeaders ¶
func (SouinSurrogateStorage) Purge ¶
func (s SouinSurrogateStorage) Purge(header http.Header) (cacheKeys []string, surrogateKeys []string)
Purge take the request headers as parameter, retrieve the associated cache keys for the Surrogate-Key given. It returns an array which one contains the cache keys to invalidate.
type SurrogateInterface ¶
type SurrogateInterface interface { GetSurrogateControl(http.Header) (string, string) GetSurrogateControlName() string Purge(http.Header) (cacheKeys []string, surrogateKeys []string) Invalidate(method string, h http.Header) Store(*http.Response, string, string) error ParseHeaders(string) []string List() map[string]string Destruct() error // contains filtered or unexported methods }
SurrogateInterface represents the interface to implement to be part
func SurrogateFactory ¶
func SurrogateFactory(config configurationtypes.AbstractConfigurationInterface, defaultStorerName string) SurrogateInterface
SurrogateFactory generate a SurrogateInterface instance