Documentation
¶
Index ¶
Constants ¶
View Source
const ( StandardStatusWebhook = "standard" SubscriptionStatusWebhook = "subscription" I18nSubscriptionStatusWebhook = "i18nSubscription" I18nNotificationStatusWebhook = "i18nNotification" PushNotificationStatusWebhook = "pushNotification" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusAlert ¶
type StatusAlert struct {
WebhookList map[string]interface{}
}
func NewStatusAlert ¶
func NewStatusAlert() *StatusAlert
NewStatusAlert makes a new instance of StatusAlert struct
func (*StatusAlert) SendSlackMessage ¶
func (s *StatusAlert) SendSlackMessage(messageContent, webhookName string)
SendSlackMessage sends a message to a Slack channel through a webhook
func (*StatusAlert) SetWebhook ¶
func (s *StatusAlert) SetWebhook(name, url string) error
SetWebhook associate a channel webhook name to a channel webhook url
Click to show internal directories.
Click to hide internal directories.