Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultLease is the default lease time for a leader.
DefaultLeaseInSec = 5
)
Variables ¶
View Source
var (
ErrNotLeader = errors.New("not leader")
)
Functions ¶
This section is empty.
Types ¶
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.