db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2017 License: Apache-2.0 Imports: 4 Imported by: 2

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 a wrapper for the etcd client, and provides our helper methods

func NewClient

func NewClient(hosts []string) *Client

NewClient creates a new Client object

func (*Client) DeleteKey

func (c *Client) DeleteKey(key string) error

DeleteKey ...

func (*Client) GetKey

func (c *Client) GetKey(key string) (string, error)

GetKey ...

func (*Client) GetKeys

func (c *Client) GetKeys(dir string) (client.Nodes, error)

GetKeys ...

func (*Client) IsKeyExist

func (c *Client) IsKeyExist(key string) bool

IsKeyExist ...

func (*Client) SetKey

func (c *Client) SetKey(key, value string) error

SetKey ...

func (*Client) SetKeyIfNotExist

func (c *Client) SetKeyIfNotExist(key, value string) error

SetKeyIfNotExist ...

Jump to

Keyboard shortcuts

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