slack

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags registers persistent flags.

Types

type Config

type Config struct {
	// URL represents the Webhook URL of the workspace where alerts will be dispatched.
	URL string `mapstructure:"url"`
	// Workspace designates the Slack workspace where alerts will be routed.
	Workspace string `mapstructure:"workspace"`
	// Channel is the slack channel in which to post alerts.
	Channel string `mapstructure:"channel"`
	// BotEmoji is the emoji icon for the Slack bot.
	BotEmoji string `mapstructure:"emoji"`
	// Enabled determines if Slack alert sender is enabled.
	Enabled bool `mapstructure:"enabled"`
}

Config stores the settings that dictate the behaviour of the Slack alert sender.

Jump to

Keyboard shortcuts

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