Versions in this module Expand all Collapse all v0 v0.1.0 Mar 11, 2024 Changes in this version + var ModelObservers sync.Map + func AddObserver(obsr ModelObserver) + func EmitObjectDeleted(object map[string]interface{}, entityName string, ctx context.Context) + func EmitObjectMultiDeleted(objects []map[string]interface{}, entityName string, ctx context.Context) + func EmitObjectMultiPosted(objects []map[string]interface{}, entityName string, ctx context.Context) + func EmitObjectPosted(object map[string]interface{}, entityName string, ctx context.Context) + func RemoveObserver(key string) + type ModelObserver interface + Key func() string + ObjectDeleted func(object map[string]interface{}, entityName string, ctx context.Context) + ObjectMultiDeleted func(objects []map[string]interface{}, entityName string, ctx context.Context) + ObjectMultiPosted func(objects []map[string]interface{}, entityName string, ctx context.Context) + ObjectPosted func(object map[string]interface{}, entityName string, ctx context.Context)