Documentation ¶
Index ¶
- func New(email string, key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
- func NewWithAPIToken(token string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
- func NewWithUserServiceKey(key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
- type Configuration
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(email string, key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
New instantiates Provider with Cloudflare email-and-key API authentication.
func NewWithAPIToken ¶
func NewWithAPIToken(token string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
NewWithAPIToken instantiates Provider with Cloudflare token API authentication.
func NewWithUserServiceKey ¶
func NewWithUserServiceKey(key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)
NewWithUserServiceKey instantiates Provider with Cloudflare user service key API authentication.
Types ¶
type Configuration ¶
type Configuration struct {
Zone *string
}
Configuration holds the Cloudflare-specific cache settings.
Click to show internal directories.
Click to hide internal directories.