Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultKey is the key used to persist the location
DefaultKey = "infrakit/leader/location"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
NewDetector return an implementation of leader detector
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store uses ectd as the backend for registration of leader location
func (Store) GetLocation ¶
GetLocation returns the location of the leader
Click to show internal directories.
Click to hide internal directories.