heartcheck v0.3.0 HeartCheck.CachingPlug.Server View Source
GenServer that serves health check results from it’s internal state
Link to this section Summary
Functions
Fetches the execution result from the cache
Returns the last time the server has run or nil
if that didn’t happen
Starts a server that caches the given heartcheck
module result for the
given ttl
(in milliseconds). It registers itself using the provided name
.
If name is not given, a name based on the heartcheck
will be used
Link to this section Functions
Fetches the execution result from the cache
Returns the last time the server has run or nil
if that didn’t happen
Link to this function
start_link(heartcheck, ttl, name \\ nil)
View Source
start_link(atom(), non_neg_integer(), GenServer.name()) :: GenServer.on_start()
Starts a server that caches the given heartcheck
module result for the
given ttl
(in milliseconds). It registers itself using the provided name
.
If name is not given, a name based on the heartcheck
will be used.