Skip to main content

Module webhook

Module webhook 

Source
Expand description

Webhook trigger port — accept inbound HTTP webhooks that start pipelines Webhook trigger port — accept inbound HTTP requests that start pipelines.

Defines the WebhookTrigger trait and associated types. The port contains zero infrastructure dependencies: adapters (e.g. axum, actix) implement the trait with real HTTP servers.

§Architecture

External service ──POST──▶ WebhookTrigger adapter
                               │
                               ▼
                         WebhookEvent
                               │
                     Application layer decides
                     which pipeline to execute

Structs§

WebhookConfig
Configuration for a webhook trigger listener.
WebhookEvent
An inbound webhook event received by the trigger listener.
WebhookListenerHandle
Handle returned by WebhookTrigger::start_listener for managing the listener lifecycle.

Traits§

WebhookTrigger
Port: accept inbound webhooks and emit WebhookEvents.