Per-tenant rate limit tracking (token bucket, ETS-backed).
Tracks Xero's limits:
- 60 requests/minute per tenant
- 5,000 requests/day per tenant
Returns :ok when the request may proceed,
or {:wait, ms} when a limit is exhausted.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec track_request(String.t()) :: :ok | {:wait, pos_integer()}