Documentation
¶
Overview ¶
Package slack provides a notifier.Transport implementation for sending notifications to Slack
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ID = identifier.NewNamespaceAndKind("slack.com", identifier.KindID)
Functions ¶
This section is empty.
Types ¶
type RichNotification ¶
type RichNotification interface { common.Notification // GetSlackOptions returns the slack.MsgOptions to be used when sending the notification GetSlackOptions() []slack.MsgOption }
RichNotification is an optional interface that can be implemented by any notification supporting Slack formatting
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport supports sending messages to Slack
func NewTransport ¶
NewTransport creates a new Slack Transport It requires a TransportID, a Slack API token, and optionally some slack.Options
func (*Transport) Key ¶
func (s *Transport) Key() common.TransportKey
Click to show internal directories.
Click to hide internal directories.