Fact.Seam.Instance (Fact v0.2.0)

View Source

Represents a specific configured instance of a Fact.Seam component.

A Fact.Seam.Instance holds:

  • :module – the implementation module (usually a module that uses Fact.Seam)
  • :state – the initialized struct of the module, created via init/1 with options

This struct allows the Fact system to treat configured components uniformly, storing the module reference and its initialized state together for easy access.

Summary

Types

t()

@type t() :: %{module: atom(), state: struct()}