slack

package
v1.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type represents Slack as notify backend
	Type string = "slack"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationSender

type NotificationSender struct {
	// contains filtered or unexported fields
}

NotificationSender is a notify.NotificationSender implementation capable of sending formatted notifications over Slack

func NewSlackNotificationSender

func NewSlackNotificationSender(webhookURL string) *NotificationSender

NewSlackNotificationSender instantiates a NotificationSender

func (*NotificationSender) Send

func (sn *NotificationSender) Send(m *notify.Message, name string)

Send dispatches a notify.Message to Slack

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL