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 ¶
func NewWebhook(ctx context.Context, endpoint string, rc webhookd.WebhookReceiver, tr []webhookd.WebhookTransformation, ds []webhookd.WebhookDispatcher) (Webhook, error)
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) 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.