etcd

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MPL-2.0 Imports: 6 Imported by: 1

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 NewEtcdClient

func NewEtcdClient(config *EtcdClientConfig) (*EtcdClient, error)

func (*EtcdClient) Acquire

func (e *EtcdClient) Acquire(key, node string) (string, error)

func (*EtcdClient) Close

func (e *EtcdClient) Close() error

func (*EtcdClient) Del

func (e *EtcdClient) Del(key string) error

func (*EtcdClient) Get

func (e *EtcdClient) Get(key string) (string, error)

func (*EtcdClient) Leader

func (e *EtcdClient) Leader(key string) (string, error)

func (*EtcdClient) Set

func (e *EtcdClient) Set(key string, val string) error

func (*EtcdClient) SetIfNotExists added in v0.0.4

func (e *EtcdClient) SetIfNotExists(key string, val string) error

func (*EtcdClient) TryAcquire added in v0.0.8

func (e *EtcdClient) TryAcquire(key, node string) (string, error)

func (*EtcdClient) WatchFolder

func (e *EtcdClient) WatchFolder(folder string) (<-chan compdb.WatchEvent, shared.CancelFn, error)

type EtcdClientConfig

type EtcdClientConfig struct {
	Endpoints []string
}

Jump to

Keyboard shortcuts

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