webhook

package
v3.3.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package webhook provides data structures and methods for definining and configuring individual webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

type Webhook struct {
	webhookd.WebhookHandler
	// contains filtered or unexported fields
}

type Webhook defines a struct that implements the `webhookd.WebhookHandler` interface for definining and configuring an individual webhook.

func NewWebhook

NewWebhook return a new `Wehook` instance.

func (Webhook) Dispatchers

func (wh Webhook) Dispatchers() []webhookd.WebhookDispatcher

Dispatchers() returns the zero of zero or more `webhookd.WebhookDispatcher` instances which will be to relay the body of a webhook message after it's been transformed.

func (Webhook) Endpoint

func (wh Webhook) Endpoint() string

Endpoint() returns the relative URI of the webhook.

func (Webhook) Receiver

func (wh Webhook) Receiver() webhookd.WebhookReceiver

Receiver() returns the `webhookd.WebhookReceiver` instance used to process a webhook message on arrival.

func (Webhook) Transformations

func (wh Webhook) Transformations() []webhookd.WebhookTransformation

Transformations() returns the list of zero or more `webhookd.WebhookTransformation` instances that will be applied to a message after receipt.

Jump to

Keyboard shortcuts

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