MingaEditor.State.AgentConnection (Minga v0.1.0)

Copy Markdown View Source

Agent provider configuration and live editor ingest connection.

Provider configuration is immutable after startup; the ingest process may be replaced as the editor's supervised agent integration restarts.

Summary

Functions

Records the supervised stream-ingest process serving this editor.

Creates agent connection state from startup provider configuration.

Types

t()

@type t() :: %MingaEditor.State.AgentConnection{
  agent_ingest: pid() | nil,
  agent_provider_module: module() | nil,
  agent_provider_opts: keyword()
}

Functions

connect_ingest(connection, ingest)

@spec connect_ingest(t(), pid() | nil) :: t()

Records the supervised stream-ingest process serving this editor.

new(provider_module \\ nil, provider_opts \\ [])

@spec new(
  module() | nil,
  keyword()
) :: t()

Creates agent connection state from startup provider configuration.