kernl API
    Preparing search index...

    Interface IngressGuard

    Ingress guard: flood control in front of the kehto bridge.

    interface IngressGuard {
        admit(
            windowId: string,
            napplet: string,
            envelope: GuardEnvelope,
            visibility: WindowVisibility,
            options?: AdmitOptions,
        ): GuardDisposition;
        drain(windowId: string): readonly GuardEnvelope[];
        forget(windowId: string): void;
        isQuarantined(windowId: string): boolean;
        release(windowId: string): void;
    }
    Index
    • Return queued envelopes that may now be dispatched, up to the drain batch size.

      Parameters

      • windowId: string

      Returns readonly GuardEnvelope[]

    • Drop all state for a window; call on revocation.

      Parameters

      • windowId: string

      Returns void

    • True once a window has been quarantined. Quarantine lasts until release.

      Parameters

      • windowId: string

      Returns boolean

    • Lift quarantine and clear counters for a window; used when the user intervenes.

      Parameters

      • windowId: string

      Returns void