notifier

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 13 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
	AutoCloseResolvedIssues bool
}

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