Backplane.AgentRuntime.ID (backplane_agent_runtime v1.6.0)

Copy Markdown

Summary

Functions

Creates an opaque serializable runtime identifier. Callers inject the generator so the execution kernel remains deterministic.

Validates an externally supplied runtime identifier without interpreting it.

Types

t()

@opaque t()

Functions

new(prefix)

@spec new(binary()) :: t()

Creates an opaque serializable runtime identifier. Callers inject the generator so the execution kernel remains deterministic.

validate(value, prefix)

@spec validate(term(), binary()) ::
  {:ok, t()} | {:error, Backplane.AgentRuntime.Error.t()}

Validates an externally supplied runtime identifier without interpreting it.