Grains.Bread (Grains v1.3.0)
A %Bread{}
is the compiled version of Recipe plus Grains
that allow the Supervisor to
run the processes and wire them correctly.
Link to this section Summary
Functions
Takes a recipe, grains and optionally a map of default implementations and returns a bread. Does not start any processes yet.
Generates a random atom to be used as an id for the Bread
Retrieve all cycle-free paths between first
and last
.
Retrieve all predecessors of short_name
.
Retrieve all routes of short_name
.
Retrieve all successors of short_name
.
Link to this section Types
Link to this section Functions
bake(recipe, grains, args \\ [])
Takes a recipe, grains and optionally a map of default implementations and returns a bread. Does not start any processes yet.
Optional Arguments
:id
Set a custom bread id
check(bread)
gen_id()
Generates a random atom to be used as an id for the Bread
paths_between(bread, first, last)
Retrieve all cycle-free paths between first
and last
.
predecessors(bread, short_name)
Retrieve all predecessors of short_name
.
routes(bread, short_name)
Retrieve all routes of short_name
.
successors(bread, short_name)
Retrieve all successors of short_name
.