Documentation ¶
Index ¶
- Constants
- func InitializeProvider(configuration configurationtypes.AbstractConfigurationInterface) types.AbstractProviderInterface
- type Badger
- func (provider *Badger) Delete(key string)
- func (provider *Badger) DeleteMany(key string)
- func (provider *Badger) Get(key string) []byte
- func (provider *Badger) Init() error
- func (provider *Badger) ListKeys() []string
- func (provider *Badger) Prefix(key string, req *http.Request) []byte
- func (provider *Badger) Reset() error
- func (provider *Badger) Set(key string, value []byte, url t.URL, duration time.Duration)
- type EmbeddedOlric
- func (provider *EmbeddedOlric) Delete(key string)
- func (provider *EmbeddedOlric) DeleteMany(key string)
- func (provider *EmbeddedOlric) Destruct() error
- func (provider *EmbeddedOlric) Get(key string) []byte
- func (provider *EmbeddedOlric) GetDM() *olric.DMap
- func (provider *EmbeddedOlric) Init() error
- func (provider *EmbeddedOlric) ListKeys() []string
- func (provider *EmbeddedOlric) Prefix(key string, req *http.Request) []byte
- func (provider *EmbeddedOlric) Reset() error
- func (provider *EmbeddedOlric) Set(key string, value []byte, url t.URL, duration time.Duration)
- type Etcd
- func (provider *Etcd) Delete(key string)
- func (provider *Etcd) DeleteMany(key string)
- func (provider *Etcd) Get(key string) (item []byte)
- func (provider *Etcd) Init() error
- func (provider *Etcd) ListKeys() []string
- func (provider *Etcd) Prefix(key string, req *http.Request) []byte
- func (provider *Etcd) Reset() error
- func (provider *Etcd) Set(key string, value []byte, url t.URL, duration time.Duration)
- type Nuts
- func (provider *Nuts) Delete(key string)
- func (provider *Nuts) DeleteMany(key string)
- func (provider *Nuts) Get(key string) (item []byte)
- func (provider *Nuts) Init() error
- func (provider *Nuts) ListKeys() []string
- func (provider *Nuts) Prefix(key string, req *http.Request) []byte
- func (provider *Nuts) Reset() error
- func (provider *Nuts) Set(key string, value []byte, url t.URL, duration time.Duration)
- type Olric
- func (provider *Olric) Delete(key string)
- func (provider *Olric) DeleteMany(key string)
- func (provider *Olric) Get(key string) []byte
- func (provider *Olric) Init() error
- func (provider *Olric) ListKeys() []string
- func (provider *Olric) Prefix(key string, req *http.Request) []byte
- func (provider *Olric) Reset() error
- func (provider *Olric) Set(key string, value []byte, url t.URL, duration time.Duration)
Constants ¶
const VarySeparator = "{-VARY-}"
VarySeparator will separate vary headers from the plain URL
Variables ¶
This section is empty.
Functions ¶
func InitializeProvider ¶
func InitializeProvider(configuration configurationtypes.AbstractConfigurationInterface) types.AbstractProviderInterface
InitializeProvider allow to generate the providers array according to the configuration
Types ¶
type Badger ¶
Badger provider type
func BadgerConnectionFactory ¶
func BadgerConnectionFactory(c t.AbstractConfigurationInterface) (*Badger, error)
BadgerConnectionFactory function create new Badger instance
func (*Badger) Delete ¶
Delete method will delete the response in Badger provider if exists corresponding to key param
func (*Badger) DeleteMany ¶
DeleteMany method will delete the responses in Badger provider if exists corresponding to the regex key param
type EmbeddedOlric ¶
type EmbeddedOlric struct {
// contains filtered or unexported fields
}
EmbeddedOlric provider type
func EmbeddedOlricConnectionFactory ¶
func EmbeddedOlricConnectionFactory(configuration t.AbstractConfigurationInterface) (*EmbeddedOlric, error)
EmbeddedOlricConnectionFactory function create new EmbeddedOlric instance
func (*EmbeddedOlric) Delete ¶
func (provider *EmbeddedOlric) Delete(key string)
Delete method will delete the response in EmbeddedOlric provider if exists corresponding to key param
func (*EmbeddedOlric) DeleteMany ¶
func (provider *EmbeddedOlric) DeleteMany(key string)
DeleteMany method will delete the responses in EmbeddedOlric provider if exists corresponding to the regex key param
func (*EmbeddedOlric) Destruct ¶ added in v1.6.9
func (provider *EmbeddedOlric) Destruct() error
Destruct method will reset or close provider
func (*EmbeddedOlric) Get ¶
func (provider *EmbeddedOlric) Get(key string) []byte
Get method returns the populated response if exists, empty response then
func (*EmbeddedOlric) GetDM ¶ added in v1.6.9
func (provider *EmbeddedOlric) GetDM() *olric.DMap
GetDM method returns the embbeded instance dm property
func (*EmbeddedOlric) Init ¶
func (provider *EmbeddedOlric) Init() error
Init method will initialize EmbeddedOlric provider if needed
func (*EmbeddedOlric) ListKeys ¶
func (provider *EmbeddedOlric) ListKeys() []string
ListKeys method returns the list of existing keys
func (*EmbeddedOlric) Prefix ¶
func (provider *EmbeddedOlric) Prefix(key string, req *http.Request) []byte
Prefix method returns the populated response if exists, empty response then
func (*EmbeddedOlric) Reset ¶
func (provider *EmbeddedOlric) Reset() error
Reset method will reset or close provider
type Etcd ¶ added in v1.6.10
Etcd provider type
func EtcdConnectionFactory ¶ added in v1.6.10
func EtcdConnectionFactory(c t.AbstractConfigurationInterface) (*Etcd, error)
EtcdConnectionFactory function create new Nuts instance
func (*Etcd) Delete ¶ added in v1.6.10
Delete method will delete the response in Etcd provider if exists corresponding to key param
func (*Etcd) DeleteMany ¶ added in v1.6.10
DeleteMany method will delete the responses in Nuts provider if exists corresponding to the regex key param
func (*Etcd) Get ¶ added in v1.6.10
Get method returns the populated response if exists, empty response then
func (*Etcd) Prefix ¶ added in v1.6.10
Prefix method returns the populated response if exists, empty response then
type Nuts ¶ added in v1.6.9
Nuts provider type
func NutsConnectionFactory ¶ added in v1.6.9
func NutsConnectionFactory(c t.AbstractConfigurationInterface) (*Nuts, error)
NutsConnectionFactory function create new Nuts instance
func (*Nuts) Delete ¶ added in v1.6.9
Delete method will delete the response in Nuts provider if exists corresponding to key param
func (*Nuts) DeleteMany ¶ added in v1.6.9
DeleteMany method will delete the responses in Nuts provider if exists corresponding to the regex key param
func (*Nuts) Get ¶ added in v1.6.9
Get method returns the populated response if exists, empty response then
func (*Nuts) Prefix ¶ added in v1.6.9
Prefix method returns the populated response if exists, empty response then
type Olric ¶
Olric provider type
func OlricConnectionFactory ¶
func OlricConnectionFactory(configuration t.AbstractConfigurationInterface) (*Olric, error)
OlricConnectionFactory function create new Olric instance
func (*Olric) Delete ¶
Delete method will delete the response in Olric provider if exists corresponding to key param
func (*Olric) DeleteMany ¶
DeleteMany method will delete the responses in Olric provider if exists corresponding to the regex key param