Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendSlackNotification ¶
func SendSlackNotification(webhookUrl string, msg SlackRequestBody) error
SendSlackNotification will post to an 'Incoming Webook' url setup in Slack Apps. It accepts some text and the slack channel is saved within Slack.
Types ¶
type SlackRequestBody ¶
type SlackRequestBody struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.