Beacon.LiveAdmin.Config (Beacon LiveAdmin v0.4.2)

View Source

Configuration for Admin instances.

See new/1 for available options and examples.

Summary

Types

Name to identify an Admin instance.

t()

Functions

Returns the Beacon.LiveAdmin.Config for instance name.

Build a new %Beacon.LiveAdmin.Config{} to hold the entire configuration for each Admin instance.

Types

name()

@type name() :: atom()

Name to identify an Admin instance.

option()

@type option() :: {:name, name()}

t()

@type t() :: %Beacon.LiveAdmin.Config{name: name()}

Functions

fetch!(name)

@spec fetch!(name()) :: t()

Returns the Beacon.LiveAdmin.Config for instance name.

new(opts)

@spec new([option()]) :: t()

Build a new %Beacon.LiveAdmin.Config{} to hold the entire configuration for each Admin instance.

Options

  • :site - name/0 (required). Name of the Admin instance, must be unique. Defaults to :admin.

Example

iex> Beacon.LiveAdmin.Config.new(
  name: :my_admin
)
%Beacon.LiveAdmin.Config{
  name: :my_admin
}