drivers

package
v0.0.0-...-8cd5e98 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyExists   = errors.New("key already exists")
	ErrKeyNotFound = errors.New("key not found")
)

Common storage errors.

Functions

This section is empty.

Types

type StorageDriver

type StorageDriver interface {
	Create(key string, value []byte) error
	Read(key string) ([]byte, error)
	Update(key string, value []byte) error
	Delete(key string) error
}

StorageDriver defines the interface for a storage backend.

Directories

Path Synopsis
memory/MemoryDriver.go
memory/MemoryDriver.go

Jump to

Keyboard shortcuts

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