PlugCheckup v0.6.0 PlugCheckup.Check View Source

Defines the structure of a check. Executes a check updating its result and execution time. Also, it transforms any exception into a tuple {:error, reason}

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %PlugCheckup.Check{
  function: atom(),
  module: module(),
  name: String.t(),
  result: atom(),
  time: pos_integer()
}

Link to this section Functions

Link to this function

safe_execute(check)

View Source
safe_execute(PlugCheckup.Check.t()) :: :ok | {:error, any()}