Module live

Source
Expand description

Utilities used for Liveness functionality.

Staticsยง

IS_LIVE ๐Ÿ”’
Flag to determine if the service is live.
LIVE_PANIC_COUNTER ๐Ÿ”’
Timestamp in seconds used to determine if the service is live.

Functionsยง

get_live_counter ๐Ÿ”’
Get the LIVE_PANIC_COUNTER value.
inc_live_counter ๐Ÿ”’
Increase LIVE_PANIC_COUNTER by one.
is_live ๐Ÿ”’
Get the IS_LIVE flag.
live_counter_reset ๐Ÿ”’
Reset the LIVE_PANIC_COUNTER to zero, returns last count.
set_not_live ๐Ÿ”’
Set the IS_LIVE flag to false.