config

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2016 License: MPL-2.0 Imports: 5 Imported by: 28

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 AddFlags added in v0.0.3

func AddFlags(cmd *cobra.Command)

AddFlags adds the available cli flags

func LoadConfigFile added in v0.0.3

func LoadConfigFile() error

LoadConfigFile reads the specified config file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL