slave

package
v1.2.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Overview

Package slave manages node hostnames for slave ids.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) HostName

func (st *Registry) HostName(slaveId string) string

HostName looks up a hostname for a given slaveId

func (*Registry) Register

func (st *Registry) Register(slaveId, slaveHostname string)

Register creates a mapping between a slaveId and slave if not existing.

func (*Registry) SlaveIDs

func (st *Registry) SlaveIDs() []string

SlaveIDs returns the keys of the registry

Jump to

Keyboard shortcuts

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