client

package
v0.0.0-...-4413804 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeartBeater

type HeartBeater struct {
	Leaders      []string
	Name         string
	ServicePort  int
	SleepSeconds int64
}

func NewHeartBeater

func NewHeartBeater(name string, servicePort int, leader string) *HeartBeater

func (*HeartBeater) StartHeartBeat

func (h *HeartBeater) StartHeartBeat(killChan chan bool)

Starts heart beating

type NameServiceAgent

type NameServiceAgent struct {
	Leaders []string
}

func NewNameServiceAgent

func NewNameServiceAgent(leaders ...string) *NameServiceAgent

func (*NameServiceAgent) Find

func (n *NameServiceAgent) Find(name string) (locations []string)

Jump to

Keyboard shortcuts

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