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_COUNTERvalue. - inc_
live_ ๐counter - Increase
LIVE_PANIC_COUNTERby one. - is_live ๐
- Get the
IS_LIVEflag. - live_
counter_ ๐reset - Reset the
LIVE_PANIC_COUNTERto zero, returns last count. - set_
not_ ๐live - Set the
IS_LIVEflag tofalse.