Documentation ¶
Index ¶
- type AkamaiSurrogateStorage
- func (s AkamaiSurrogateStorage) Destruct() error
- 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 string) error
- type CloudflareSurrogateStorage
- func (s CloudflareSurrogateStorage) Destruct() error
- 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 string) error
- type FastlySurrogateStorage
- func (s FastlySurrogateStorage) Destruct() error
- 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) 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) 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) 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) 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) 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 { Purge(http.Header) (cacheKeys []string, surrogateKeys []string) Store(*http.Response, 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) SurrogateInterface
SurrogateFactory generate a SurrogateInterface instance