etcd

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer holds fields for etcd writer.

func NewWriter

func NewWriter(etcdClient *etcdclient.Client, withLease bool, opts ...clientv3.OpOption) *Writer

NewWriter returns a new etcd writer.

func (*Writer) Close

func (ew *Writer) Close() error

Close closes the etcd writer.

func (*Writer) Delete

func (ew *Writer) Delete(key string, opts ...clientv3.OpOption)

Delete deletes a key from etcd.

func (*Writer) Write

func (ew *Writer) Write(key string, value []byte, opts ...clientv3.OpOption)

Write writes a key value pair to etcd with options.

Jump to

Keyboard shortcuts

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