Hafnium (hafnium v0.2.1) View Source
## Example
iex> defmodule Demo do
...> use Hafnium
...> end
...>
...> Demo.name
...> ## -> :hafnium_test_demo
...>
Link to this section Summary
Link to this section Types
Specs
input() :: any()
Specs
Specs
pipe_result() :: t() | pipe_atom_result() | pipe_tuple_result()
Specs
Specs
state() :: :noop | :error | :ok | :fatal
:ok
— success:error
— error:noop
— likeok
but do nothing:fatal
— error and break
Specs
t() :: %Hafnium{ __module__: current_module :: module(), __pipeline__: Hafnium.Pipeline.t(), context: context :: keyword(), input: input(), pipelines: pipelines :: [Hafnium.Pipeline.t()], result: result :: result() }
Base struct
Link to this section Functions
Specs
Specs
Add pipeline
defmodule ExampleApi do
use Elixir.Hafnium
pipeline MyPipeline1, [foo: :bar]
pipeline MyPipeline2
end