heartcheck v0.3.0 HeartCheck.Executor View Source

Handles the execution of the checks in a HeartCheck module.

Spawns several Tasks for the checks, execute and wait for the result.

Handles timeouts for the checks with the {:error, "TIMEOUT"} result.

Link to this section Summary

Functions

Executes the given HeartCheck module

Link to this section Types

Link to this type result() View Source
result() :: {String.t(), {term(), :ok} | {term(), {:error, term()}} | {term(), :error}}

Link to this section Functions

Link to this function execute(heartcheck) View Source
execute(HeartCheck) :: Keyword.t()

Executes the given HeartCheck module.

Returns a Keyword.t with the results keyed by check name.