Svelixir.Config.Supervision (svelixir v0.11.0)

Copy Markdown

Supervision tree and repo ownership — the otp: section.

supervisor is derived, not a free choice: an Ecto repo is a supervised process, so repo: true forces it. Svelixir.Config.Otp applies that implication; nothing here does, because a section cannot see its siblings.

This is the one section whose module name differs from its config key, hence the :as override — a user who mistypes a key under otp: should be told about otp, not about supervision.

Summary

Functions

Builds this section, and any nested block, from input.

Types

t()

@type t() :: %Svelixir.Config.Supervision{repo: boolean(), supervisor: boolean()}

Functions

new!(input \\ [])

@spec new!(keyword() | map()) :: t()

Builds this section, and any nested block, from input.

valid?(self)