elector

package
v2.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LeaderKey = "/lain/deployd/leader"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Elector

type Elector struct {
	// contains filtered or unexported fields
}

func New

func New(etcds []string, key string, value string) (*Elector, error)

func (*Elector) IsLeader

func (e *Elector) IsLeader() bool

func (*Elector) Run

func (e *Elector) Run(stop chan struct{}) chan string

Jump to

Keyboard shortcuts

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