Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderElector ¶
type LeaderElector struct {
URL string
}
func NewWithURL ¶
func NewWithURL(URL string) *LeaderElector
NewWithURL returns a LeaderElector with a custom service endpoint URL
func (*LeaderElector) IsLeader ¶
func (le *LeaderElector) IsLeader() (bool, error)
IsLeader returns whether this host is the leader
type LeaderResponse ¶
type LeaderResponse struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.