config

package
v0.0.0-...-890d60c Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 6 Imported by: 4

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 `long:"alerts" short:"a" required:"true" description:"A yaml file, or directory with yaml files, containing alert definitions"`
	ElasticSearchAddr string `long:"es-addr" default:"127.0.0.1:9200" description:"Address to find an elasticsearch instance on"`
	ElasticSearchUser string `long:"es-user" default:"elastic" description:"Username for the elasticsearch"`
	ElasticSearchPass string `long:"es-pass" default:"changeme" description:"Password for the elasticsearch"`
	LuaInit           string `long:"lua-init" description:"If set the given lua script file will be executed at the initialization of every lua vm"`
	LuaVMs            int    `` /* 254-byte string literal not displayed */
	SlackWebhook      string `long:"slack-webhook" description:"Slack webhook url, required if using any Slack actions"`
	ForceRun          string `` /* 154-byte string literal not displayed */
	LogLevel          string `long:"log-level" default:"info" description:"Adjust the log level. Valid options are: error, warn, info, debug"`
}

Opts configs

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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