config

package
v0.0.0-...-0ead997 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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