Ming.Middleware behaviour (Ming v0.1.1)

View Source

The middleware behaviour

Summary

Callbacks

The action executes after failure

The action executes after dispatch

The action executes before dispatch

Callbacks

after_failure(pipeline)

@callback after_failure(pipeline :: Ming.Pipeline.t()) :: Ming.Pipeline.t()

The action executes after failure

before_after(pipeline)

@callback before_after(pipeline :: Ming.Pipeline.t()) :: Ming.Pipeline.t()

The action executes after dispatch

before_dispatch(pipeline)

@callback before_dispatch(pipeline :: Ming.Pipeline.t()) :: Ming.Pipeline.t()

The action executes before dispatch