Discover Packages
github.com/inja-online/llm-gateway
hooks
webhook
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 24, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package webhook posts usage events as JSON to an HTTP endpoint.
Delivery is asynchronous so the request path never blocks on the sink.
Sink POSTs each usage event to URL.
New builds a webhook sink. timeout <= 0 uses a 3s default.
OnUsage queues a non-blocking POST. Failures are logged; they never
affect the client response (the usage event was already recorded on the
request path).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.