Versions in this module Expand all Collapse all v1 v1.1.0 Aug 1, 2026 Changes in this version + const CodeCorrupt + const CodeIdentity + const CodeSchema + const SchemaVersion + func Encode(s State) ([]byte, error) + type Mutator func(*State) error + type Projection struct + Change string + Condition string + NextAction string + Revision uint64 + Schema int + Stage string + type State struct + Approvals []json.RawMessage + Change string + Condition string + CreatedBy string + Extensions map[string]json.RawMessage + LastTransition string + Revision uint64 + SchemaVersion int + Stage string + Tasks map[string]json.RawMessage + func Decode(data []byte, expectedChange string) (State, error) + func Initial(change, creationID string) State + func Mutate(path, expectedChange string, expectedRevision uint64, mutate Mutator) (State, error) + func (s State) Project() Projection + func (s State) Validate(expectedChange string) error