local

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: Apache-2.0 Imports: 2 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
}

a backend just for test.

func NewLocalClient

func NewLocalClient() (*Client, error)

func (*Client) Delete

func (c *Client) Delete(nodePath string, dir bool) error

func (*Client) DeleteMapping

func (c *Client) DeleteMapping(nodePath string, dir bool) error

func (*Client) Get

func (c *Client) Get(nodePath string, dir bool) (interface{}, error)

Get queries etcd for nodePath.

func (*Client) GetMapping

func (c *Client) GetMapping(nodePath string, dir bool) (interface{}, error)

func (*Client) Put

func (c *Client) Put(nodePath string, value interface{}, replace bool) error

func (*Client) PutMapping

func (c *Client) PutMapping(nodePath string, mapping interface{}, replace bool) error

func (*Client) Sync

func (c *Client) Sync(s store.Store, stopChan chan bool)

func (*Client) SyncMapping

func (c *Client) SyncMapping(mapping store.Store, stopChan chan bool)

Jump to

Keyboard shortcuts

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