Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.provider-limits

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.
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.
raw docstring

all-provider-limitsclj

(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.
sourceraw docstring

provider-limitsclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close