Normalized provider limits surface.
Providers may optionally expose :provider/limits-fn in the global
registry. The function returns provider-specific limit/quota data;
this namespace wraps it in one validated envelope and augments it
with static provider metadata from svar's catalog (currently RPM /
TPM).
Goals:
Normalized provider limits surface. Providers may optionally expose `:provider/limits-fn` in the global registry. The function returns provider-specific limit/quota data; this namespace wraps it in one validated envelope and augments it with static provider metadata from svar's catalog (currently RPM / TPM). Goals: - one host-level shape for all providers, - explicit support for providers that only know static limits, - spec validation of every returned report, - graceful error envelopes instead of exploding the caller when a provider-specific implementation is absent or malformed.
(all-provider-limits)Return normalized limits reports for every registered provider in registration order.
Return normalized limits reports for every registered provider in registration order.
(provider-limits provider-id)Return a normalized, spec-validated limits report for one provider id.
The provider's optional :provider/limits-fn supplies the dynamic
portion. This host wrapper backfills static svar metadata and always
returns a valid ::report envelope, even when the provider-specific
implementation is absent, missing, throws, or returns malformed data.
Providers that only have static svar catalog metadata still return a
usable :ok report so callers can surface RPM / TPM without needing a
registered runtime extension.
Return a normalized, spec-validated limits report for one provider id. The provider's optional `:provider/limits-fn` supplies the dynamic portion. This host wrapper backfills static svar metadata and always returns a valid `::report` envelope, even when the provider-specific implementation is absent, missing, throws, or returns malformed data. Providers that only have static svar catalog metadata still return a usable `:ok` report so callers can surface RPM / TPM without needing a registered runtime extension.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |