Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.