Documentation ¶
Overview ¶
Package config implements logic to load dynamic configuration from various sources It also defines environment specific configuration (dev, prod, ...)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdapterConfig ¶ added in v0.3.0
type AdapterConfig struct { Adapter string `json:"adapter"` Config map[string]string `json:"config"` }
AdapterConfig is a generic config struct for adapters
type Config ¶
type Config struct { Node string `json:"node"` Version string `json:"version"` Request Request `json:"request"` Log Log `json:"log"` Stats Stats `json:"stats"` App interface{} `json:"app"` }
Config defines the app config
type Log ¶
type Log struct { Level string `json:"level"` Formatter AdapterConfig `json:"formatter"` Printer AdapterConfig `json:"printer"` }
Log contains all log-related configuration
Directories ¶
Path | Synopsis |
---|---|
consul
Package consul reads configuration from the Consul KV store Consul is a highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
|
Package consul reads configuration from the Consul KV store Consul is a highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy. |
file
Package file reads configuration from a JSON file e.g.
|
Package file reads configuration from a JSON file e.g. |
Click to show internal directories.
Click to hide internal directories.