collections

package
v0.0.0-...-dc14e8d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = fmt.Errorf("not found")
)

Functions

This section is empty.

Types

type ETCDValue

type ETCDValue struct {
	Key    string
	Client *clientv3.Client
}

func (*ETCDValue) Del

func (v *ETCDValue) Del(ctx context.Context) (err error)

func (*ETCDValue) Get

func (v *ETCDValue) Get(ctx context.Context) (data []byte, err error)

func (*ETCDValue) Put

func (v *ETCDValue) Put(ctx context.Context, value []byte) (err error)

func (*ETCDValue) WithLock

func (v *ETCDValue) WithLock(ctx context.Context, next func(context.Context) error) error

Jump to

Keyboard shortcuts

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