AshDyan.Analysis.Registry (AshDyan v0.3.0)

Copy Markdown View Source

Maps an analysis :type atom to its AshDyan.Analysis implementation.

Built-in types are merged with config :ash_dyan, :analysis_types, so third-party analysis types can be registered without patching AshDyan.

Summary

Functions

All registered analysis types (built-in merged with app config).

Returns {:ok, module} or :error.

The list of known analysis type atoms.

Functions

all()

@spec all() :: %{required(atom()) => module()}

All registered analysis types (built-in merged with app config).

fetch(type)

@spec fetch(atom()) :: {:ok, module()} | :error

Returns {:ok, module} or :error.

types()

@spec types() :: [atom()]

The list of known analysis type atoms.