Barograph.Ingest.Supervisor (barograph v0.2.0)

Copy Markdown View Source

Supervises configured ingest listeners for one open database (spec §10).

Started as an opt-in child of Barograph.Database via the :ingest option to Barograph.open/2 — a documented deviation from spec §4.1's top-level diagram (see the v0.2 progress report): every other option in this library flows through open/2, and tying a listener's lifecycle to one already-open database means Barograph.close/1 tears it down along with everything else.

Summary

Functions

Returns a specification to start this module under a supervisor.

Registry name for a protocol's listener under a database, for ThousandIsland.listener_info/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

listener_name(protocol, arg)

@spec listener_name(atom(), Barograph.db()) :: GenServer.name()

Registry name for a protocol's listener under a database, for ThousandIsland.listener_info/1.

start_link(opts)

@spec start_link(keyword()) :: Supervisor.on_start()