PgFlowDashboard.Supervisor (PgFlow v0.1.0)

Copy Markdown View Source

Supervisor for PgFlowDashboard processes.

Manages the MetricsCache GenServer and ensures it restarts on failure.

Usage

Add to your application's supervision tree:

children = [
  # ... other children
  {PgFlowDashboard.Supervisor, []}
]

Or with options:

{PgFlowDashboard.Supervisor, name: MyApp.PgFlowDashboardSupervisor}

Summary

Functions

Returns the child specification for this supervisor.

Starts the PgFlowDashboard supervisor.

Functions

child_spec(init_arg)

Returns the child specification for this supervisor.

This allows the supervisor to be added to a parent supervision tree:

children = [
  PgFlowDashboard.Supervisor
]

start_link(opts \\ [])

Starts the PgFlowDashboard supervisor.

Options