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 tofalse
.