Formular.Client.Config (formular_client v0.2.0-alpha.1)

Link to this section Summary

Functions

Get the config for a given formula name.

Build a new config constructure.

Link to this section Types

Link to this type

compile_function()

Specs

compile_function() ::
  ({name :: String.t(), code :: binary(), module(), nil | module()} ->
     :ok | {:error, term()})
Link to this type

formula_def()

Specs

formula_def() :: {module(), formula_name(), context :: module()}
Link to this type

formula_full_def()

Specs

formula_full_def() :: formula_def() | {module(), name :: String.t()}
Link to this type

formula_name()

Specs

formula_name() :: String.t()

Specs

t() :: %Formular.Client.Config{
  adapter: module(),
  client_name: String.t(),
  compiler: {module(), atom(), args :: list()} | compile_function(),
  formulas: [formula_def()],
  url: String.t()
}

Link to this section Functions

Link to this function

formula_config(arg1, name)

Specs

formula_config(t(), formula_name()) :: formula_def() | nil

Get the config for a given formula name.

Specs

new(Enum.t()) :: t()

Build a new config constructure.