etcd

package
v0.0.0-...-7b6b330 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdClient

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

func New

func New(config clientv3.Config) (*EtcdClient, error)

func (*EtcdClient) Close

func (c *EtcdClient) Close() error

func (*EtcdClient) Get

func (c *EtcdClient) Get(ctx context.Context, key string) ([]byte, error)

Get retrieves a value from a K/V store for the provided key.

func (*EtcdClient) Watch

func (c *EtcdClient) Watch(ctx context.Context, key string, stop chan bool) <-chan *backends.Response

Watch a K/V store for changes to key.

Jump to

Keyboard shortcuts

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