Porterage v0.1.0 Porterage.Deliverer behaviour View Source

Delivers a data package to a configured destination.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callbacks

Execute a run of the deliverer module.

Optional state initialization.

Link to this section Types

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this section Callbacks

Link to this callback

deliver(state, data)

View Source
deliver(state :: state(), data :: any()) :: state()

Execute a run of the deliverer module.

Link to this callback

init(opts)

View Source (optional)
init(opts :: map()) :: state()

Optional state initialization.