SuperWorker.Supervisor.Chain.Config (SuperWorker v0.3.6)

View Source

Handles the configuration and validation for a Chain.

This module is responsible for taking a keyword list of options, validating them against predefined rules, and creating a SuperWorker.Supervisor.Chain struct.

Summary

Functions

Normalizes, validates, and creates a Chain struct from the given options.

Functions

new(opts)

@spec new(list()) :: {:ok, SuperWorker.Supervisor.Chain.t()} | {:error, term()}

Normalizes, validates, and creates a Chain struct from the given options.