Versions in this module Expand all Collapse all v0 v0.0.1 Dec 16, 2024 Changes in this version + func DiffAppStates(expected, actual view.AppState) string + func DiffModuleStates(expected, actual view.ModuleState) string + func DiffObjectCollections(expected, actual view.ObjectCollection) string + type App struct + func NewApp(appSchema map[string]schema.ModuleSchema, options Options) *App + func (a *App) ApplyUpdate(data appdata.ObjectUpdateData) error + func (a *App) GetModule(moduleName string) (view.ModuleState, error) + func (a *App) InitializeModule(data appdata.ModuleInitializationData) error + func (a *App) Modules(f func(modState view.ModuleState, err error) bool) + func (a *App) NumModules() (int, error) + func (a *App) UpdateGen() *rapid.Generator[appdata.ObjectUpdateData] + type Module struct + func NewModule(name string, moduleSchema schema.ModuleSchema, options Options) *Module + func (o *Module) ApplyUpdate(update schema.StateObjectUpdate) error + func (o *Module) GetObjectCollection(objectType string) (view.ObjectCollection, error) + func (o *Module) ModuleName() string + func (o *Module) ModuleSchema() schema.ModuleSchema + func (o *Module) NumObjectCollections() (int, error) + func (o *Module) ObjectCollections(f func(value view.ObjectCollection, err error) bool) + func (o *Module) UpdateGen() *rapid.Generator[schema.StateObjectUpdate] + type ObjectCollection struct + func NewObjectCollection(objectType schema.StateObjectType, options Options, typeSet schema.TypeSet) *ObjectCollection + func (o *ObjectCollection) AllState(f func(schema.StateObjectUpdate, error) bool) + func (o *ObjectCollection) ApplyUpdate(update schema.StateObjectUpdate) error + func (o *ObjectCollection) GetObject(key interface{}) (update schema.StateObjectUpdate, found bool, err error) + func (o *ObjectCollection) Len() (int, error) + func (o *ObjectCollection) ObjectType() schema.StateObjectType + func (o *ObjectCollection) UpdateGen() *rapid.Generator[schema.StateObjectUpdate] + type Options struct + CanRetainDeletions bool