api

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteBothIfOtherHasRevisionOpts

type DeleteBothIfOtherHasRevisionOpts struct {
	Key           string
	OtherKey      string
	OtherRevision int64
}

type Interface

type Interface interface {
	clientv3.Lease
	clientv3.KV
	clientv3.Watcher

	DeletePair(context.Context, string, string) error
	PutIfNotExists(context.Context, string, string, ...clientv3.OpOption) (bool, error)

	PutIfOtherHasRevision(context.Context, PutIfOtherHasRevisionOpts) (bool, error)
	DeleteBothIfOtherHasRevision(context.Context, DeleteBothIfOtherHasRevisionOpts) error

	DeletePrefixes(context.Context, ...string) error
}

type PutIfOtherHasRevisionOpts

type PutIfOtherHasRevisionOpts struct {
	Key           string
	Val           string
	OtherKey      string
	OtherRevision int64
}

Jump to

Keyboard shortcuts

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