Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2025 v0.0.1 Nov 25, 2025 Changes in this version + const SchemaName + func Constructor(params json.RawMessage, mkSchema schema.Factory) (schema.Schema, error) + type Iterator struct + func (it *Iterator[State]) Next(ctx context.Context, dst *Root[State]) error + type Machine struct + HashAlgo blobcache.HashAlgo + ParseState Parser[State] + Verify VerifyFunc[State] + func (m *Machine[State]) AndThen(ctx context.Context, s schema.RW, r Root[State], next State) (Root[State], error) + func (m *Machine[State]) GetPrev(ctx context.Context, s schema.RO, root Root[State]) (*Root[State], error) + func (m *Machine[State]) GetRoot(ctx context.Context, s schema.RO, cid merklelog.CID) (*Root[State], error) + func (m *Machine[State]) Initial(initState State) Root[State] + func (m *Machine[State]) NewIterator(s schema.RO, prev Root[State], next Root[State]) *Iterator[State] + func (m *Machine[State]) Parse(data []byte) (Root[State], error) + func (m *Machine[State]) PostRoot(ctx context.Context, s schema.WO, root Root[State]) (merklelog.CID, error) + func (m *Machine[State]) Slot(ctx context.Context, s schema.RO, root Root[State], slot merklelog.Pos) (*Root[State], error) + func (m *Machine[State]) Validate(ctx context.Context, s schema.RO, prev, next Root[State]) error + type Marshaler interface + Marshal func(out []byte) []byte + type Parser = func(data []byte) (T, error) + type Root struct + History merklelog.State + State State + func Parse[State Marshaler](data []byte, parseState Parser[State]) (Root[State], error) + func (r Root[State]) Len() merklelog.Pos + func (r Root[State]) Marshal(out []byte) []byte + type Schema struct + Mach Machine[T] + func (sch *Schema[T]) ValidateChange(ctx context.Context, change schema.Change) error + func (sch *Schema[T]) ValidateState(ctx context.Context, s schema.RO, root Root[T]) error + type Spec struct + HashAlgo blobcache.HashAlgo + X blobcache.SchemaSpec + type VerifyFunc = func(ctx context.Context, s schema.RO, prev, next State) error