Documentation ¶
Index ¶
- func Exists(typeName string, entityID common.EntityID, callback ExistsCallbackFunc)
- func Initialize()
- func ListEntityIDs(typeName string, callback ListCallbackFunc)
- func Load(typeName string, entityID common.EntityID, callback LoadCallbackFunc)
- func Save(typeName string, entityID common.EntityID, data interface{}, ...)
- func Shutdown()
- type ExistsCallbackFunc
- type ListCallbackFunc
- type LoadCallbackFunc
- type SaveCallbackFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exists ¶
func Exists(typeName string, entityID common.EntityID, callback ExistsCallbackFunc)
Exists checks if entity of specified ID exists in storage
func ListEntityIDs ¶
func ListEntityIDs(typeName string, callback ListCallbackFunc)
ListEntityIDs returns all entity IDs in storage
Return values can be large for common entity types
func Load ¶
func Load(typeName string, entityID common.EntityID, callback LoadCallbackFunc)
Load loads entity data from storage
Types ¶
type ExistsCallbackFunc ¶
ExistsCallbackFunc is the callback type of storage Exists
type ListCallbackFunc ¶
ListCallbackFunc is the callback type of storage List
type LoadCallbackFunc ¶
type LoadCallbackFunc func(data interface{}, err error)
LoadCallbackFunc is the callback type of storage Load
type SaveCallbackFunc ¶
type SaveCallbackFunc func()
SaveCallbackFunc is the callback type of storage Save
Click to show internal directories.
Click to hide internal directories.