etcdWatcher

package
v0.0.0-...-8112245 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMap

func BuildMap()

func ClientGet

func ClientGet(kapi client.KeysAPI, url string) *client.Response

ClientGet gets data from etcd sending in an url and receiving a etcd.Response object

func DeleteFromMap

func DeleteFromMap(k string)

func DumpMap

func DumpMap()

DumpMap walks the host map and dumps out key-value pairs

func DumpServices

func DumpServices(kapi client.KeysAPI, baseStr string)

DumpServices is a utility method that dumps all contents of etcd that match a specified base string

func InitDataMap

func InitDataMap(kapi client.KeysAPI, baseStr string)

InitDataMap initializes a local map of hostnames and their respective metadata as struct: ip, status, name

func Map

func Map() map[string]string

Map returns the hostmap

func UpdateMap

func UpdateMap(k string, v string)

UpdateMap updates the local hostmap with the given KV pair

Types

This section is empty.

Jump to

Keyboard shortcuts

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