Accrue.Processor.Capabilities (accrue v1.1.1)

Copy Markdown View Source

Capability map for bounded processor slices.

Accrue's processor behaviour is historically Stripe-shaped. This module keeps the public support contract explicit: adapters declare the slices they actually implement, while support labels describe whether a row is part of the official first-party promise, staged, or intentionally out of slice.

Summary

Functions

first_party_supported?(capabilities, path)

@spec first_party_supported?(map(), atom() | [atom()]) :: boolean()

for(adapter)

@spec for(module()) :: map()

provider_support_label(provider, path)

@spec provider_support_label(atom(), atom() | [atom()]) :: String.t() | nil

support_label(path)

@spec support_label(atom() | [atom()]) :: String.t() | nil

supports?(capabilities, path)

@spec supports?(map(), [atom()]) :: boolean()