inmem

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package inmem is the in-memory Store driver (RFC §13).

It backs single-user stdio Dockyard apps, where durable persistence is unnecessary, and is the fast path for tests. All state lives in process memory and is lost on Close. Like every Store driver it passes the shared conformance suite in runtime/store/storetest.

The driver registers itself under the name "inmem" via its init block; a blank import is enough to make store.Open("inmem", …) work:

import _ "github.com/hurtener/dockyard/runtime/store/inmem"

Index

Constants

View Source
const DriverName = "inmem"

DriverName is the name this driver registers under.

Variables

This section is empty.

Functions

func New

func New() store.Store

New constructs an empty in-memory Store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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