config

package
v0.0.0-...-3b54a73 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtcdRawGetValue

func EtcdRawGetValue(key string) (string, error)

EtcdRawGetValue get raw or unmarshalled value from etcd cluster

func GetEnvVar

func GetEnvVar(keyEnv string) string

GetEnvVar will get environment variable from OS

func StartEtcd

func StartEtcd()

StartEtcd beginning connection

Types

type EtcdResponse

type EtcdResponse struct {
	Action string `json:"action"`
	Node   struct {
		CreatedIndex  float64 `json:"createdIndex"`
		Key           string  `json:"key"`
		ModifiedIndex float64 `json:"modifiedIndex"`
		Value         string  `json:"value"`
	} `json:"node"`
}

EtcdResponse struct data from etcd response

Jump to

Keyboard shortcuts

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