etcd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 9 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 MustNew

func MustNew() *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeleteKey

func (c *Client) DeleteKey(ctx context.Context, key string, opts ...v3.OpOption) error

func (*Client) GetValue

func (c *Client) GetValue(ctx context.Context, key string, opts ...v3.OpOption) ([]byte, error)

func (*Client) ListKeys

func (c *Client) ListKeys(ctx context.Context, prefix string, opts ...v3.OpOption) ([]string, bool, error)

List keys beginning at certain prefix, with ability to specify range-end

func (*Client) PutValue

func (c *Client) PutValue(ctx context.Context, key string, value []byte, opts ...v3.OpOption) error

Jump to

Keyboard shortcuts

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