state

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CurrentNodesCount is the redis key for current Cerberus node count.
	CurrentNodesCount = "nodecount"
	// CurrentRequestsCount is the redis key for current Cerberus proxy request count.
	CurrentRequestsCount = "requestcount"
	// LeaderLock is the lock to get leadership.
	LeaderLock = "leaderlock"
)

Variables

View Source
var Manager *manager

Manager is the state manager for Cerberus.

Functions

func InitManager

func InitManager() error

InitManager connects to redis and setup the state manager.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL