notifier

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogNotifier

type LogNotifier struct {
	Logger *log.Logger
}

func (*LogNotifier) Notify

func (c *LogNotifier) Notify(diff model.DiffCache, wg *sync.WaitGroup)

type Notifier

type Notifier interface {
	Notify(cache model.DiffCache, waitGroup *sync.WaitGroup)
}

type WebhookNotifier

type WebhookNotifier struct {
	Logger     *log.Logger
	HTTPClient internal.HTTPClient
	PayloadURL url.URL
	Secret     string
	Meta       map[string]string
}

func (*WebhookNotifier) Notify

func (c *WebhookNotifier) Notify(diff model.DiffCache, wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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