Documentation
¶
Overview ¶
Package memory is the stack's in-memory storage profile, for tests and experiments. Nothing survives the process.
A Backend may hand out several Storage handles onto the same stores, which is how a test restarts a stack over the same state, or runs a Factory with RemoteHosts and a ServeHost Host in one binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend is one set of in-memory stores: a control composite and one journal composite per tenant, created on first use.
func New ¶
func New() *Backend
New returns an empty Backend. Its workspace directory is a fresh path under os.TempDir, created on first use and removed by Close.
Click to show internal directories.
Click to hide internal directories.