View Source Reactor.Info (reactor v0.10.1)

Introspection for the Reactor DSL.

Summary

Functions

reactor DSL entities

reactor.middlewares DSL entities

reactor DSL options

Specify which step result to return upon completion.

Specify which step result to return upon completion.

Convert a reactor DSL module into a reactor struct.

Raising version of to_struct/1.

Functions

Link to this function

reactor(dsl_or_extended)

View Source
@spec reactor(dsl_or_extended :: module() | map()) :: [struct()]

reactor DSL entities

Link to this function

reactor_middlewares(dsl_or_extended)

View Source
@spec reactor_middlewares(dsl_or_extended :: module() | map()) :: [struct()]

reactor.middlewares DSL entities

Link to this function

reactor_options(dsl_or_extended)

View Source
@spec reactor_options(dsl_or_extended :: module() | map()) :: %{
  required(atom()) => any()
}

reactor DSL options

Returns a map containing the and any configured or default values.

Link to this function

reactor_return(dsl_or_extended)

View Source
@spec reactor_return(dsl_or_extended :: module() | map()) :: {:ok, atom()} | :error

Specify which step result to return upon completion.

Link to this function

reactor_return!(dsl_or_extended)

View Source
@spec reactor_return!(dsl_or_extended :: module() | map()) :: atom() | no_return()

Specify which step result to return upon completion.

@spec to_struct(module() | Reactor.t() | Spark.Dsl.t()) ::
  {:ok, Reactor.t()} | {:error, any()}

Convert a reactor DSL module into a reactor struct.

@spec to_struct!(module() | Reactor.t() | Spark.Dsl.t()) :: Reactor.t() | no_return()

Raising version of to_struct/1.