package
0.10.0
Repository: https://github.com/abhinav/git-spice.git
Documentation: pkg.go.dev

# Functions

NewDB creates a new DB using the given Backend.
NewGitBackend creates a new GitBackend that stores data in the given Git repository.
SyncBackend adds mutex-based synchronization around all operations of the given backend to make it thread-safe.

# Variables

ErrNotExist indicates that a key that was expected to exist does not exist.

# Structs

DB is a high-level wrapper around a Backend.
GitBackend implements a storage backend using a Git repository reference as the storage medium.
GitConfig is used to configure a GitBackend.
SetRequest is a single operation to add or update a key.
UpdateRequest performs a batch of write operations in one transaction.

# Interfaces

Backend defines the primitive operations for the key-value store.
GitRepository is the subset of the git.Repository API used by the state package.

# Type aliases

MapBackend is an in-memory implementation of [Backend] backed by a map.