Read a ledger: an instance's state, its history oldest first with sequence and author, a watch of its states, a declared index (issue 1966 T3)

This commit is contained in:
2026-11-03 13:42:33 +01:00
parent ad22c5e9fe
commit 63c1e3faa2
6 changed files with 390 additions and 2 deletions
+2
View File
@@ -87,6 +87,8 @@ type Ledger struct {
History History
State State
Snapshots Snapshots
// Indexes are its declared indexes' buckets, by index name.
Indexes map[string]Index
// Now is the clock an operation is stamped by; time.Now when nil.
Now func() time.Time
// Logf says what an apply could not do after its operation was taken; nothing is said when nil.