Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct {
// contains filtered or unexported fields
}
Notification holds information on all the supported channels require to communicate with the channel API.
func GetNotification ¶
func GetNotification(ctx context.Context, logger log.Logger, client slack.SlackClient, notificationConfig *config.Notification) *Notification
func NewNotification ¶
func NewNotification(ctx context.Context, logger log.Logger, notificationConfig *config.Notification) (*Notification, error)
NewNotification will return Notification with the initialized channel information.
func (*Notification) Notify ¶
func (n *Notification) Notify(msg string) error
Notify sends a message to the available channels and returns combined error from different channels if any.
Click to show internal directories.
Click to hide internal directories.