Spectre.Input.Source (Spectre v0.3.0)

Copy Markdown View Source

Provider-neutral origin attached to a normalized Spectre input.

Optional channel and protocol packages use kind as their namespace and mount as the concrete configured endpoint. Identifiers remain opaque to the core.

Summary

Types

t()

@type t() :: %Spectre.Input.Source{
  actor_id: term(),
  conversation_id: term(),
  kind: atom() | String.t(),
  metadata: map(),
  mount: term(),
  reply_to: term()
}

Functions

new(source)

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