# Functions
CloneObject is clones object function Parameters: - item any an object to clone Return any copy of input item.
CloneObjectForResult is clones object for result function Parameters: - item any an object to clone - proto reflect.Type of returned value, need for detect object or pointer returned type Returns: any copy of input item.
CompareValues are ompares two values Parameters: - value1 any an object one for compare - value2 any an object two for compare Returns: bool true if value1 equal value2 and false otherwise.
FromIds method convert ids string array to array of any object Parameters: - ids - []string array of ids Returns: []any array of ids.
GenerateObjectId is generates a new id value when it's empty Parameters: - item *any a pointer on object to set id property Results: saved in input object.
GetObjectId value Parameters: - item any an object to read property from.
GetProperty value of object property specified by its name.
NewFilePersistence creates a new instance of the persistence.
NewIdentifiableFilePersistence creates a new instance of the persistence.
NewIdentifiableMemoryPersistence creates a new empty instance of the persistence.
NewJsonFilePersister creates a new instance of the persistence.
NewMemoryPersistence creates a new instance of the MemoryPersistence Typed params: - T cdata.ICloneable[T] any type that implemented ICloneable interface of getting element Return *MemoryPersistence[T].
SetObjectId is set object Id value Parameters: - item *any a pointer on object to set id property - id any id value for set Results: saved in input object.
SetProperty value of object property specified by its name.
ToPublicArray method convert array of any object to array of map[string]any Parameters: - value []any input object to convert Returns: []map[string]any converted map array.
ToPublicMap method convert any object to map[string]any Parameters: - value any input object to convert Returns: map[string]any converted object to map.
# Constants
No description provided by the author
No description provided by the author
# Structs
FilePersistence is an abstract persistence component that stores data in flat files and caches them in memory.
IdentifiableFilePersistence is an abstract persistence component that stores data in flat files and implements a number of CRUD operations over data items with unique ids.
IdentifiableMemoryPersistence Abstract persistence component that stores data in memory and implements a number of CRUD operations over data items with unique ids.
JsonFilePersister is a persistence component that loads and saves data from/to flat file.
MemoryPersistence abstract persistence component that stores data in memory.
# Interfaces
IFilteredPageReader is interface for data processing components that can retrieve a page of data items by a filter.
IFilteredReader interface for data processing components that can retrieve a list of data items by filter.
IGetter Interface for data processing components that can get data items.
ILoader interface for data processing components that load data items.
IPartialUpdater interface for data processing components to update data items partially.
IQuerablePageReader interface for data processing components that can query a page of data items.
IQuerableReader interface for data processing components that can query a list of data items.
ISaver interface for data processing components that save data items.
ISetter interface for data processing components that can set (create or update) data items.
IWriter interface for data processing components that can create, update and delete data items.