webhook

package
v4.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deliverer

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

func New

func New(conf *config.Webhook, client *http.Client) (*Deliverer, error)

New returns a new webhook Deliverer

func (*Deliverer) Deliver

func (d *Deliverer) Deliver(ctx context.Context, nID uuid.UUID) error

Deliver implements the notifier.Deliverer interface.

Deliver POSTS a webhook data structure to the configured target.

func (*Deliverer) Name

func (d *Deliverer) Name() string

Jump to

Keyboard shortcuts

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