MingaAgent.RemoteAPI.AttachResult (Minga v0.1.0)

Copy Markdown View Source

Attach result returned by the remote API broker.

Summary

Functions

Creates an attach result from session info and snapshot data.

Types

role()

@type role() :: :driver | :viewer

t()

@type t() :: %MingaAgent.RemoteAPI.AttachResult{
  events: [MingaAgent.EventLog.EventRecord.t()],
  latest_event_id: non_neg_integer(),
  messages: [MingaAgent.Message.t()],
  metadata: MingaAgent.SessionMetadata.t(),
  pid: pid(),
  role: role(),
  session_id: String.t(),
  snapshot: MingaAgent.Session.editor_snapshot(),
  token: String.t()
}

Functions

new(info, role, messages, snapshot, opts \\ [])

Creates an attach result from session info and snapshot data.