Documentation
    Preparing search index...

    Interface Bucket

    Token-bucket counter for a single (napplet, opClass) pair.

    The bucket is stored in FirewallState.buckets keyed as napplet:opClass. The refill math is lazy: tokens are only recomputed when evaluate() is called.

    Current available token count (may be fractional).

    Timestamp (Unix ms) of the last token-refill computation.

    interface Bucket {
        lastRefill: number;
        tokens: number;
    }
    Index

    Properties

    Properties

    lastRefill: number
    tokens: number