DarkFlows.Workflow (DarkFlows v1.0.1) View Source

DarkFlows.Workflow

Link to this section Summary

Functions

Helper for extracting a context value via partial application.

Helper for extracting a context value via partial application.

Link to this section Types

Specs

context() ::
  map() | %{required(atom()) => any()} | %{required(String.t()) => any()}

Specs

failed_multi() :: %{
  failed_operation: atom(),
  failed_value: any(),
  changes_so_far: map()
}

Specs

opts() :: Keyword.t()

Specs

result() :: {:ok, context()} | {:error, Opus.PipelineError.t()}

Specs

step_fun() :: (any() -> any())

Specs

step_result() ::
  context() | {:error, atom()} | {:error, failed_multi()} | {:error, any()}

Link to this section Functions

Link to this function

partial_get_in(selector, fun)

View Source

Specs

partial_get_in(atom(), step_fun()) :: (context() -> any())

Helper for extracting a context value via partial application.

Link to this function

within(selector, fun)

View Source (since 1.0.1)

Specs

within(atom(), step_fun()) :: {:with, (context() -> any())}

Helper for extracting a context value via partial application.