Porterage v0.1.0 Porterage.Scheduler behaviour View Source

Takes care of (periodically) triggering the chosen tester module.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callbacks

Optional state initialization.

Execute a run of the scheduler module.

Link to this section Types

Link to this type

tick_result()

View Source
tick_result() :: {state(), boolean()}

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

init(opts)

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

Optional state initialization.

Link to this callback

tick(state)

View Source
tick(state :: any()) :: tick_result()

Execute a run of the scheduler module.