Help us shape the future of Go! Take the 2026 Go Developer Survey

memstore

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package memstore is the in-memory reference backend for storage's five primitives. It is the conformance oracle other backends are checked against: correct, allocation-simple, and dependency-free. Because several 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 five — so memstore is built as 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, ordered index). All five 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