Macaw.Data.Operations.Registry (macaw_data v0.5.3)

Copy Markdown View Source

The transforms and aggregates of the enabled packages, by name (spec/04 §2), built by Macaw.Data.Operations.registry/1.

Names are strings matched by spelling. The registry holds macaw_data's own package and exactly the packages a host lists: a module that is merely loaded is not reachable.

Summary

Functions

The aggregate module named name, by spelling, or :error.

The transform module named name, by spelling, or :error.

Types

t()

@type t() :: %Macaw.Data.Operations.Registry{
  aggregates: %{required(String.t()) => module()},
  digest: String.t(),
  packages: [module()],
  transforms: %{required(String.t()) => module()}
}

Functions

aggregate(registry, name)

@spec aggregate(t(), String.t() | atom()) :: {:ok, module()} | :error

The aggregate module named name, by spelling, or :error.

transform(registry, name)

@spec transform(t(), String.t() | atom()) :: {:ok, module()} | :error

The transform module named name, by spelling, or :error.