Documentation ¶
Overview ¶
Package config is a central location for configuration options. It also contains config file parsing logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ApiCrt = "" // Path to SSL crt for API access ApiKey = "" // Path to SSL key for API access ApiKeyPassword = "" // Password for SSL key ApiListen = "127.0.0.1:1632" // Listen address for the API (ip:port) ApiToken = "secret" // Token for API Access Insecure = false // Disable tls key checking (client) and listen on http (server) L2Connect = "scribble:///var/db/shaman" // Connection string for the l2 cache TTL int = 60 // Default TTL for DNS records Domain = "." // Parent domain for requests DnsListen = "127.0.0.1:53" // Listen address for DNS requests (ip:port) LogLevel = "INFO" // Log level to output [fatal|error|info|debug|trace] Server = false // Run in server mode ConfigFile = "" // Configuration file to load Version = false // Print version info and exit Log lumber.Logger // Central logger for shaman )
Functions ¶
func LoadConfigFile ¶ added in v0.0.3
func LoadConfigFile() error
LoadConfigFile reads the specified config file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.