Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1.0"
Variables ¶
View Source
var Config = initConfig()
View Source
var GitHash = "unknown"
View Source
var LogLevelNames = map[string]int{"debug": 5, "info": 4, "warning": 3, "error": 2, "critical": 1, "fatal": 0}
LogLevelNames give convenient, easier to remember than number name for the different levels of logging.
Functions ¶
func ParseConfigOptions ¶
func ParseConfigOptions() error
Types ¶
type Options ¶
type Options struct { Version bool `short:"v" long:"version" description:"Print version info."` ConfFile string `short:"c" long:"config" description:"Specify a config file to use." env:"SPQR_CONFIG_FILE"` ConsulHttpAddr string `` /* 211-byte string literal not displayed */ UserKeyPrefix string `` /* 142-byte string literal not displayed */ LogFile string `short:"L" long:"log-file" description:"Log to file X" env:"SPQR_LOG_FILE"` SysLog bool `` /* 129-byte string literal not displayed */ LogLevel string `` /* 272-byte string literal not displayed */ StateFile string `short:"s" long:"statefile" description:"Store spqr's state in this file."` Verbose []bool `short:"V" long:"verbose" description:"Show verbose debug information. Repeat for more verbosity."` }
Click to show internal directories.
Click to hide internal directories.