Documentation
¶
Overview ¶
Package webhook implements an emitter that POSTs the evaluation results as JSON to an HTTP(S) endpoint. It is configured with a single value, the webhook URL, taken from its initstring (eg "webhook:https://example.com/hook").
Emitting is best-effort: a single POST is attempted with no retries. A non-2xx response or a transport error is returned to the publisher, which surfaces it without failing the evaluation.
Index ¶
Constants ¶
View Source
const TypeMoniker = "webhook"
TypeMoniker is the moniker used to select this emitter in an initstring.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.