Skip to main content

Module push

Module push 

Source
Expand description

Push notification configuration storage and delivery.

Modules§

cipherpostgres or sqlite
Sealing push notification configs at rest (spec §13.2: agents SHOULD securely store push notification configurations and credentials).
config_store
Push notification configuration storage trait and in-memory implementation.
outbox
A durable queue of webhook deliveries (ADR 0037, audit H14).
postgres_config_storepostgres
PostgreSQL-backed PushConfigStore implementation.
sender
Push notification sender trait and HTTP implementation.
sqlite_config_storesqlite
SQLite-backed PushConfigStore implementation.
tenant_config_store
Tenant-scoped push notification config store.
tenant_postgres_config_storepostgres
Tenant-scoped PostgreSQL-backed PushConfigStore implementation.
tenant_sqlite_config_storesqlite
Tenant-scoped SQLite-backed PushConfigStore implementation.
webhook
The webhook side of push delivery: which headers carry the notification token, how a receiver reads it, and how a webhook URL is named in logs.

Structs§

HttpPushSender
HTTP-based PushSender using hyper.
InMemoryPushConfigStore
In-memory PushConfigStore backed by a HashMap.
InMemoryPushOutbox
An in-memory PushOutbox.
PostgresPushConfigStore
PostgreSQL-backed PushConfigStore.
PostgresPushOutbox
A PushOutbox in a PostgreSQL database; see the module documentation.
PushRetryPolicy
Retry policy for push notification delivery.
SqlitePushConfigStore
SQLite-backed PushConfigStore.
SqlitePushOutbox
A PushOutbox in an SQLite database; see the module documentation.
TenantAwareInMemoryPushConfigStore
Tenant-isolated in-memory PushConfigStore.
TenantAwarePostgresPushConfigStore
Tenant-scoped PostgreSQL-backed PushConfigStore.
TenantAwareSqlitePushConfigStore
Tenant-scoped SQLite-backed PushConfigStore.

Traits§

PushConfigCipher
Encrypts push notification configs for an SQL store; see the module docs.
PushConfigStore
Trait for storing push notification configurations.
PushOutbox
Where webhook deliveries wait until they are delivered; see the module documentation.
PushSender
Trait for delivering push notifications to client webhooks.

Functions§

current_delivery_id
The delivery id with_delivery_id set for the delivery being made, if any: what a custom PushSender sends as A2A-Delivery-Id to keep the outbox’s guarantee.
with_delivery_id
Runs f with id as the A2A-Delivery-Id of the deliveries it makes.