Tirexs v0.8.15 Tirexs.DSL

This module represents a main entry point for creating resources from DSL.

The resource types are allowed to be settings, mapping, search, or percolator definitions.

This convenience allows you to define particular resources over *.exs snippets and load them by request, for instance:

iex> Path.expand("examples/settings.exs") |> Tirexs.load_file

Find out more samples right in /examples directory.

Summary

Functions

Calls a definition_fn/0,1 function and will create their resource. The resource types are allowed to be settings, mapping, search, or percolator

Calls a definition_fn/1,2 function and will create their resource. The resource types are allowed to be settings, mapping, search, or percolator

Functions

define(definition_fn)

Calls a definition_fn/0,1 function and will create their resource. The resource types are allowed to be settings, mapping, search, or percolator.

define(initial, definition_fn)

Calls a definition_fn/1,2 function and will create their resource. The resource types are allowed to be settings, mapping, search, or percolator.