Jido.Pod.Topology.Link (Jido v2.2.0)

View Source

Canonical link definition for a pod topology.

Links describe relationships between named topology nodes. In v1 they support a small fixed vocabulary and primarily drive eager reconciliation ordering.

Summary

Functions

Builds a validated topology link.

Builds a validated topology link, raising on error.

Types

t()

@type t() :: %Jido.Pod.Topology.Link{
  from: atom() | binary(),
  meta: map(),
  to: atom() | binary(),
  type: atom()
}

Functions

new(link)

@spec new(t() | tuple() | keyword() | map()) :: {:ok, t()} | {:error, term()}

Builds a validated topology link.

Tuple shorthand {type, from, to} and {type, from, to, meta} is supported for backward compatibility.

new!(attrs)

@spec new!(t() | tuple() | keyword() | map()) :: t()

Builds a validated topology link, raising on error.