Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { Port int `yaml:"port"` Prefix string `yaml:"prefix,omitempty"` ACL string `yaml:"acl,omitempty"` Debug bool `yaml:"debug,omitempty"` }
API holds the API configuration.
type Configuration ¶
type Configuration struct { Listeners Listeners `yaml:"listeners"` Upstreams Upstreams `yaml:"upstreams"` HttpCache *cache.HttpCacheConfig `yaml:"cache"` Provider *provider.ProviderBackendConfig `yaml:"provider"` Cluster *cluster.Config `yaml:"cluster"` API *API `yaml:"api"` Log *Log `yaml:"logging"` }
Configuration is the root configuration.
func (*Configuration) Validate ¶
func (c *Configuration) Validate() error
Validate validates the configuration.
type Listener ¶
type Listener struct {
Addr string `yaml:"addr"`
}
Listener holds the listener config.
type Loader ¶
type Loader struct { Events chan bool // contains filtered or unexported fields }
Loader loads a configuration from file.
func (*Loader) AutoReload ¶
AutoReload returns true if auto-reloading is enabled.
type Log ¶
type Log struct { Level string `yaml:"level,omitempty"` Format string `yaml:"format,omitempty"` Color bool `yaml:"color,omitempty"` File string `yaml:"file,omitempty"` MaxSize int `yaml:"max_size,omitempty"` MaxAge int `yaml:"max_age,omitempty"` MaxBackups int `yaml:"max_backups,omitempty"` Compress bool `yaml:"compress,omitempty"` }
Log holds the logger configuration.
Click to show internal directories.
Click to hide internal directories.