libetcd

package
v0.0.0-...-26736ab Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const KeyGitHubAuthToken string = "/github/auth/token"

KeyGitHubAuthToken is the key used to store the GitHub Auth token

Variables

This section is empty.

Functions

func GetJSON

func GetJSON(ctx context.Context, etcdKV etcd.KeysAPI, key string,
	result interface{}) error

GetJSON retrieves a key from Etcd and decodes the value as JSON into a struct

func SetJSON

func SetJSON(ctx context.Context, etcdKV etcd.KeysAPI, key string,
	value interface{}) error

SetJSON saves a struct in JSON form under a key in Etcd

func TraverseDir

func TraverseDir(node *etcd.Node, key string) []string

TraverseDir gets all values with a specified key from a directory recursively

Types

This section is empty.

Jump to

Keyboard shortcuts

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