MingaAgent.EventLog.Writer (Minga v0.1.0)

Copy Markdown View Source

Single ordered SQLite writer for MingaAgent.EventLog.

This process exclusively owns the write connection and executes at most one insert or retention operation at a time. It monitors its EventLog owner so the connection is closed when that owner terminates, including an untrappable kill.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts an unlinked writer monitored by its EventLog owner.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start(owner, opts)

@spec start(
  pid(),
  keyword()
) :: GenServer.on_start()

Starts an unlinked writer monitored by its EventLog owner.