webhook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package webhook provides an explicit webhook-named HTTP correlation adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter keeps webhook propagation explicit at send and receive call sites.

func New

func New(factory *correlation.Factory, options Options) (*Adapter, error)

New constructs an explicit webhook correlation adapter.

func (*Adapter) Send

func (adapter *Adapter) Send(request *http.Request, parent correlation.Values) (correlation.Values, error)

Send creates and injects a fresh outbound webhook request hop.

func (*Adapter) Wrap

func (adapter *Adapter) Wrap(next http.Handler) http.Handler

Wrap receives a webhook through the configured explicit trust boundary.

type Options

type Options = httpcorrelation.Options

Options configure webhook boundary trust and invalid input handling.

Jump to

Keyboard shortcuts

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