notify

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoOp

type NoOp struct {
}

func (*NoOp) Handle

func (s *NoOp) Handle(e event.Event) error

type Notifier

type Notifier interface {
	Handle(e event.Event) error
}

func NewNoOp

func NewNoOp(c *config.Config) Notifier

func NewNotifierList

func NewNotifierList(conf *config.Config) Notifier

func NewSlack

func NewSlack(c *config.Config) Notifier

func NewWebhook

func NewWebhook(c *config.Config) Notifier

type NotifierList

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

func (*NotifierList) Handle

func (n *NotifierList) Handle(e event.Event) error

type Slack

type Slack struct {
	Token   string
	Channel string
	Title   string
}

func (*Slack) Handle

func (s *Slack) Handle(e event.Event) error

Handle handles the notification.

type Webhook

type Webhook struct {
	URL string
}

func (*Webhook) Handle

func (w *Webhook) Handle(event event.Event) (err error)

Jump to

Keyboard shortcuts

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