Documentation ¶
Overview ¶
Package slack is the slack notification package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotifyConfig ¶
type NotifyConfig struct { base.DefaultNotify `yaml:",inline"` WebhookURL string `yaml:"webhook" json:"webhook" jsonschema:"required,format=uri,title=Webhook URL,description=The Slack webhook URL"` }
NotifyConfig is the slack notification configuration
func (*NotifyConfig) Config ¶
func (c *NotifyConfig) Config(gConf global.NotifySettings) error
Config configures the slack notification
func (*NotifyConfig) SendSlack ¶
func (c *NotifyConfig) SendSlack(title, msg string) error
SendSlack is the wrapper for SendSlackNotification
func (*NotifyConfig) SendSlackNotification ¶
func (c *NotifyConfig) SendSlackNotification(msg string) error
SendSlackNotification will post to an 'Incoming Webhook' url setup in Slack Apps. It accepts some text and the slack channel is saved within Slack.
Click to show internal directories.
Click to hide internal directories.