webhook

package
v4.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 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, signer Signer) (*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

type Signer added in v4.6.0

type Signer interface {
	Sign(context.Context, *http.Request) error
}

Jump to

Keyboard shortcuts

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