Svelixir.Config.Features (svelixir v0.1.0)

Copy Markdown

Optional feature flags.

Summary

Functions

Builds and validates a Features struct from a raw string-keyed map.

Types

t()

@type t() :: %Svelixir.Config.Features{
  cqrs: boolean(),
  feature_flags: boolean(),
  multitenancy: boolean()
}

Functions

from_map(data)

@spec from_map(map()) :: {:ok, t()} | {:error, String.t()}

Builds and validates a Features struct from a raw string-keyed map.