tat

package
v1.31.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type represents Tat as notify backend
	Type string = "tat"
)

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 TaT (github.com/ovh/tat)

func NewTatNotificationSender

func NewTatNotificationSender(url, user, pass, topic string) (*NotificationSender, error)

NewTatNotificationSender instantiates a NotificationSender

func (*NotificationSender) Send

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

Send dispatches a notify.Message to TaT

Jump to

Keyboard shortcuts

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