webhook

package
v1.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Type represents Webhook as notify backend
	Type string = "webhook"
)

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 notifications to a webhook

func NewWebhookNotificationSender

func NewWebhookNotificationSender(webhookURL, username, password string, headers map[string]string) *NotificationSender

NewWebhookNotificationSender instantiates a NotificationSender

func (*NotificationSender) Send

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

Send is the implementation for triggering a webhook to send the notification

Jump to

Keyboard shortcuts

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