configuration

package
Version: v0.0.0-...-5a50bec Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	SenderType       string `env:"SENDER_TYPE,required"`
	Interval         int    `env:"INTERVAL" envDefault:"65"`
	HTTPEndpoint     string `env:"HTTP_ENDPOINT"`
	HTTPMethod       string `env:"HTTP_METHOD" envDefault:"POST"`
	EmailAddress     string `env:"EMAIL_ADDR"`
	PDIntegrationKey string `env:"PD_KEY"`
	SlackChannel     string `env:"SLACK_CHANNEL" envDefault:"#general"`
	SlackUsername    string `env:"SLACK_USERNAME" envDefault:"Cole - DeadManSwitch Monitor"`
	SlackIcon        string `env:"SLACK_ICON" envDefault:":monkey_face:"`
	ClusterLabel     string `env:"LABEL"`
}

func ReadConfig

func ReadConfig(fileName string) Conf

Reads info from config file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL