Documentation ¶
Overview ¶
Package config parses command-line/environment/config file arguments and make available to other packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Opts struct { Conf string `long:"conf" description:"esalert config file"` AlertFileDir string `` /* 139-byte string literal not displayed */ ElasticSearchAddr string `yaml:"es-addr" long:"es-addr" default:"127.0.0.1:9200" description:"Address to find an elasticsearch instance on"` ElasticSearchUser string `yaml:"es-user" long:"es-user" default:"elastic" description:"Username for the elasticsearch"` ElasticSearchPass string `yaml:"es-pass" long:"es-pass" default:"changeme" description:"Password for the elasticsearch"` LuaInit string `` /* 133-byte string literal not displayed */ LuaVMs int `` /* 269-byte string literal not displayed */ SlackWebhook string `yaml:"slack-webhook" long:"slack-webhook" description:"Slack webhook url, required if using any Slack actions"` ForceRun string `` /* 171-byte string literal not displayed */ Log log.Config `yaml:"log" long:"log" description:"logging options"` }
Opts configs
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.