etcd

package
v0.0.0-...-05abc1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT, MIT Imports: 6 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
}

func New

func New(machines []string) (*Client, error)

func (*Client) Get

func (c *Client) Get(key string) ([]byte, error)

func (*Client) GetWithContext

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

func (*Client) List

func (c *Client) List(key string) (backend.KVPairs, error)

func (*Client) ListWithContext

func (c *Client) ListWithContext(ctx context.Context, key string) (backend.KVPairs, error)

func (*Client) Set

func (c *Client) Set(key string, value []byte) error

func (*Client) SetWithContext

func (c *Client) SetWithContext(ctx context.Context, key string, value []byte) error

func (*Client) Watch

func (c *Client) Watch(key string, stop chan bool) <-chan *backend.Response

func (*Client) WatchWithContext

func (c *Client) WatchWithContext(ctx context.Context, key string, stop chan bool) <-chan *backend.Response

Jump to

Keyboard shortcuts

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