Spikard.LifecycleHookRef (spikard v0.17.0)

Copy Markdown

A single lifecycle hook reference within a [LifecycleHooksConfig] phase.

Matches the fixture shape exactly (fixtures/lifecycle_hooks.json, fixtures/di.json): each entry is an object with a required name and handler, an optional list of dependency keys, and an optional free-form config blob (e.g. {"max_requests": 10, "window_seconds": 60} for a rate-limiting hook). deny_unknown_fields turns future fixture drift into a loud error.

Summary

Types

t()

A single lifecycle hook reference within a [LifecycleHooksConfig] phase.

Types

t()

@type t() :: %Spikard.LifecycleHookRef{
  config: String.t() | nil,
  dependencies: [String.t()],
  handler: String.t() | nil,
  name: String.t() | nil,
  order: non_neg_integer() | nil
}

A single lifecycle hook reference within a [LifecycleHooksConfig] phase.