election

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpProxy

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

func NewTcpProxy

func NewTcpProxy(port int, to func() string) *TcpProxy

func (*TcpProxy) Close

func (t *TcpProxy) Close() error

func (*TcpProxy) Forward

func (t *TcpProxy) Forward() error

type TimeoutConn

type TimeoutConn struct {
	Conn    net.Conn
	Timeout time.Duration
}

func (TimeoutConn) Read

func (i TimeoutConn) Read(buf []byte) (int, error)

func (TimeoutConn) Write

func (i TimeoutConn) Write(buf []byte) (int, error)

type Watcher

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

func New

func New(client *metadata.Client, port int, command []string) *Watcher

func (*Watcher) IsLeader

func (w *Watcher) IsLeader() bool

func (*Watcher) Watch

func (w *Watcher) Watch() error

Jump to

Keyboard shortcuts

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