stackengine

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is an empty wrapper around the StackEngine client

func NewStackEngineClient

func NewStackEngineClient(nodes []string, scheme, cert, key, caCert string, authToken string) (*Client, error)

NewStackEngineClient returns a client object with connection information.

func (*Client) GetValues

func (c *Client) GetValues(keys []string) (map[string]string, error)

GetValues queries StackEngine for keys prefixed by prefix.

func (*Client) WatchPrefix

func (c *Client) WatchPrefix(prefix string, waitIndex uint64, stopChan chan bool) (uint64, error)

type KVPair

type KVPair struct {
	Key         string
	CreateIndex uint64
	ModifyIndex uint64
	LockIndex   uint64
	Flags       uint64
	Value       []byte
	Session     string
}

KVPair is used to represent a single K/V entry

Jump to

Keyboard shortcuts

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