leader

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: 4 Imported by: 0

Documentation

Overview

Leader acts as a transient team leader It register each service's active locations.

Index

Constants

View Source
const TimeOutLimit = 25 // seconds

Variables

This section is empty.

Functions

func RunLeader

func RunLeader(listenOn string)

Types

type Path

type Path string

func (*Path) String

func (p *Path) String() string

type RemoteService

type RemoteService struct {
	ServiceLocation ServiceLocation
	LastHeartBeat   int64 // epoc seconds
}

func (*RemoteService) String

func (rp *RemoteService) String() string

type ServiceLocation

type ServiceLocation string

func (*ServiceLocation) String

func (i *ServiceLocation) String() string

type TeamLeader

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

Jump to

Keyboard shortcuts

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