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 Sourcet() :: %PlugCheckup.Check{ function: atom(), module: module(), name: String.t(), result: atom(), time: pos_integer() }
Link to this section Functions
Link to this function
execute(check)
View Sourceexecute(PlugCheckup.Check.t()) :: PlugCheckup.Check.t()
Link to this function
safe_execute(check)
View Sourcesafe_execute(PlugCheckup.Check.t()) :: :ok | {:error, any()}