Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultDisabled = false
)
Variables ¶
View Source
var ( ErrUserIDRequired = errors.New("cloudflare user id is required") ErrTokenRequired = errors.New("cloudflare token is required") ErrPrefixRequired = errors.New("cloudflare prefix is required") ErrUpstreamRootDomainRequired = errors.New("cloudflare upstream root domain is required") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Disabled bool `mapstructure:"disabled"` UserID string `mapstructure:"user_id"` Token string `mapstructure:"token"` Prefix string `mapstructure:"prefix"` UpstreamRootDomain string `mapstructure:"upstream_root_domain"` }
func (*Config) GenerateOptions ¶
func (c *Config) GenerateOptions(logName string) (*cloudflare.Options, error)
func (*Config) RootPersistentFlags ¶
Click to show internal directories.
Click to hide internal directories.