Help us shape the future of Go! Take the 2026 Go Developer Survey

etcd

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliTimeoutKey = "ETCDV3_CLI_TIMEOUT_SECOND"

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 NewFromV2Config added in v0.23.0

func NewFromV2Config(config goetcd.Config) (*Client, error)

func (*Client) Get

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

func (*Client) GetWithContext added in v0.1.0

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

func (*Client) List added in v0.1.0

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

func (*Client) ListWithContext added in v0.1.0

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 added in v0.1.0

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 added in v0.1.0

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

type ClientV3 added in v0.6.0

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

func NewFromV3Config added in v0.23.0

func NewFromV3Config(config goetcdv3.Config) (*ClientV3, error)

func NewV3 added in v0.6.0

func NewV3(machines []string) (*ClientV3, error)

func (*ClientV3) Get added in v0.6.0

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

func (*ClientV3) List added in v0.6.0

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

func (*ClientV3) Set added in v0.6.0

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

func (*ClientV3) Watch added in v0.6.0

func (c *ClientV3) Watch(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