Bloccs.Context (bloccs v0.1.0)

Copy Markdown View Source

The per-message context passed to a node's pure-core and effect-shell.

Holds the effect capability struct (from Bloccs.Effects.bind/1), the wall-clock receipt time, and an arbitrary metadata bag for things like request_id, retries, telemetry tags.

Summary

Functions

Build a context. Accepts the same kw opts as the struct fields.

Types

t()

@type t() :: %Bloccs.Context{
  effects: Bloccs.Effects.Capabilities.t(),
  meta: map(),
  received_at: DateTime.t()
}

Functions

new(opts)

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

Build a context. Accepts the same kw opts as the struct fields.