memstore

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package memstore is the in-memory reference backend for storage's four primitives. It is the conformance oracle other backends are checked against: correct, allocation-simple, and dependency-free. Because the four primitives have colliding method names (Ledger/KV/Blobs all declare Delete; KV and Blobs declare Get/Put with different signatures), no single Go type can satisfy all four — so memstore is built as four separate unexported backing types that are wired into a *storage.Composite at the composition root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *storage.Composite

New assembles the in-memory reference backend: a *storage.Composite wiring one fresh backing store per primitive (ledger, leaser, KV, blobs). All four providers are non-nil, so the underlying NewComposite can never report an incomplete composite — a non-nil error here is impossible and is treated as an unrecoverable programmer error (panic) rather than propagated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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