Versions in this module Expand all Collapse all v0 v0.1.1 Nov 23, 2026 v0.1.0 Nov 14, 2026 Changes in this version + type Ledger struct + func New[T any](capacity, bytes int) (*Ledger[T], error) + func (l *Ledger[T]) Bytes() int + func (l *Ledger[T]) Get(id string) (Record[T], bool) + func (l *Ledger[T]) Len() int + func (l *Ledger[T]) Records(group string) []Record[T] + func (l *Ledger[T]) Reserve(group string, value T, cost int) (Record[T], error) + func (l *Ledger[T]) Retire(active map[string]bool) []string + func (l *Ledger[T]) Update(id string, state State, value T, cost int, pinned bool) error + type Record struct + Cost int + Group string + ID string + Pinned bool + Sequence uint64 + State State + Value T + type State string + const Confirmed + const Failed + const Pending + const Uncertain