PtcRunner.LiveStatus.Target (PtcRunner v0.14.0)

Copy Markdown View Source

An explicit destination for one run's live-status frames.

Hosts use a target when status should stay inside the current BEAM instead of being posted to the external Viewer URL configured by PTC_VIEWER_URL. Reporting remains best-effort: callback failures are contained and never affect the run.

Summary

Types

t()

@opaque t()

Functions

label(target)

@spec label(term()) :: binary() | nil

new(report, opts \\ [])

@spec new(
  (binary(), map() -> term()),
  keyword()
) :: {:ok, t()} | {:error, :invalid_live_status_target}

report(target, run_id, frame)

@spec report(term(), binary(), map()) :: :ok | :error

valid?(target)

@spec valid?(term()) :: boolean()