#[non_exhaustive]pub struct WebhookConfig {
pub notifications_only: bool,
pub enabled: bool,
pub inbox_max_bytes: i64,
pub ingress_per_endpoint_per_minute: u32,
pub ingress_per_network_per_minute: u32,
pub subscribe_per_owner_per_hour: u32,
}Expand description
The webhook inbox (ontola/atomic-plugins#369). Off unless
WEBHOOKS_ENABLED=true: then, and only then, the proxy creates the inbox
tables and runs the inbox sweeper. No webhook route is mounted yet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.notifications_only: boolDiscard verified provider bodies after extracting routing metadata. WEBHOOK_NOTIFICATIONS_ONLY=true stores only a fixed change hint.
enabled: boolWEBHOOKS_ENABLED: true turns the inbox on; unset, empty or
false leaves it off. Anything else stops the proxy at startup.
inbox_max_bytes: i64WEBHOOK_INBOX_MAX_BYTES: the deployment’s inbox budget in bytes,
payloads plus the stated per-row overhead. Defaults to
DEFAULT_WEBHOOK_INBOX_MAX_BYTES (1 GiB).
ingress_per_endpoint_per_minute: u32WEBHOOK_INGRESS_LIMIT_PER_ENDPOINT: failed verifications one
existing endpoint counts per minute, per instance; over it, further
ones get 429 instead of 401. A delivery that verifies is never
refused for it. Default 600.
ingress_per_network_per_minute: u32WEBHOOK_INGRESS_LIMIT_PER_NETWORK: refusals one client network (as
TRUST_FORWARDED_FOR finds it) may cause per minute, per instance
(not 400 or 408). Over it, its requests for ids that name no
endpoint get 429, and at most 2 requests of networks over their
limit may wait for or hold the lookup slot at a time. Default 120.
subscribe_per_owner_per_hour: u32WEBHOOK_SUBSCRIBE_LIMIT_PER_OWNER: subscription requests per
connection owner per hour, per instance, counted before the access
check reaches the provider. Default 20.
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§impl Debug for WebhookConfig
impl Debug for WebhookConfig
Source§impl Default for WebhookConfig
impl Default for WebhookConfig
impl Eq for WebhookConfig
Source§impl PartialEq for WebhookConfig
impl PartialEq for WebhookConfig
impl StructuralPartialEq for WebhookConfig
Auto Trait Implementations§
impl Forget for WebhookConfig
impl Freeze for WebhookConfig
impl Move for WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnsafeUnpin for WebhookConfig
impl UnwindSafe for WebhookConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.