Sprites.StreamMessage (Sprites v0.1.0)

View Source

A message from a streaming operation (checkpoint create/restore).

Fields

  • :type - Message type: "info", "stdout", "stderr", or "error"
  • :data - Message data (for info/stdout/stderr)
  • :error - Error message (for error type)

Summary

Functions

Creates a stream message from a map.

Converts a stream message to a map.

Types

t()

@type t() :: %Sprites.StreamMessage{
  data: String.t() | nil,
  error: String.t() | nil,
  type: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Creates a stream message from a map.

to_map(msg)

@spec to_map(t()) :: map()

Converts a stream message to a map.