backends

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package backends contains the prototype definition and the behaviors that the backends for etcd-adapter requires.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
	// Key returns the unique identical key for this item.
	// Key will be used to decide the partial order. Currently
	// it's string type and cannot be changed.
	Key() string
	// Marshal marshals the item.
	Marshal() ([]byte, error)
}

Item will be used as the key and value type of the backends.

type Revisioner

type Revisioner interface {
	// Revision returns the current revision.
	Revision() int64
	// Incr increases the current revision and returns it.
	Incr() int64
}

Revisioner is the revision manager, revision is a int64 typed integer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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