Documentation
¶
Overview ¶
Package memory provides an in-memory lifecycle.Store for tests and process-local workflows. It is the reference implementation of the Store and Session contract but is not durable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a process-local, mutex-protected lifecycle.Store. It clones snapshots at every boundary and fences stale sessions with lifecycle.ErrOwnershipLost. It is not durable and cannot coordinate separate processes. The zero value is ready for use, and a Store is safe for concurrent use.
func (*Store) Acquire ¶
Acquire returns an exclusive session for runID, or lifecycle.ErrRunOwned while another session owns it.