notifier

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubNotifier

type GitHubNotifier struct {
	GitHubClient    *github.Client
	BodyTemplate    *template.Template
	TitleTemplate   *template.Template
	AlertIDTemplate *template.Template
	Labels          []string
}

func NewGitHub

func NewGitHub() (*GitHubNotifier, error)

func (*GitHubNotifier) Notify

func (n *GitHubNotifier) Notify(ctx context.Context, payload *types.WebhookPayload, queryParams url.Values) error

type Notifier

type Notifier interface {
	Notify(context.Context, *types.WebhookPayload, url.Values) error
}

Jump to

Keyboard shortcuts

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