Versions in this module Expand all Collapse all v1 v1.4.0 Aug 14, 2022 v1.3.0 Mar 19, 2022 Changes in this version + const AccessCacheAndFetchError + const AccessCacheAndFetchSeriousError + const AccessFetchError + const AccessFreeError + const AccessInsertError + const AccessNotInCache + const AccessUpdateError + const BlockSizeFreeSlots + const BlockSizeLogicalSlots + const BlockSizePhysicalSlots + const FileSiffixLockfile + const FileSuffixLogicalFreeSlots + const FileSuffixLogicalSlots + const FileSuffixPhysicalFreeSlots + const FileSuffixPhysicalSlots + const RootIDVersion + const VERSION + var BufferPool = pools.NewByteBufferPool() + var ErrNotInCache = errors.New("No entry in cache") + var ErrReadonly = errors.New("Storage is readonly") + var ErrSlotNotFound = errors.New("Slot not found") + var MsmCallNumClose int + var MsmCallNumFlush int + var MsmCallNumRollback int + var MsmRetClose error + var MsmRetFlush error + var MsmRetRollback error + func DataFileExist(filename string) bool + type ByteDiskStorageManager struct + func NewByteDiskStorageManager(filename string, readonly bool, onlyAppend bool, transDisabled bool, ...) *ByteDiskStorageManager + func (bdsm *ByteDiskStorageManager) Close() error + func (bdsm *ByteDiskStorageManager) Fetch(loc uint64, o interface{}) error + func (bdsm *ByteDiskStorageManager) FetchCached(loc uint64) (interface{}, error) + func (bdsm *ByteDiskStorageManager) Flush() error + func (bdsm *ByteDiskStorageManager) Free(loc uint64) error + func (bdsm *ByteDiskStorageManager) Insert(o interface{}) (uint64, error) + func (bdsm *ByteDiskStorageManager) Name() string + func (bdsm *ByteDiskStorageManager) Rollback() error + func (bdsm *ByteDiskStorageManager) Root(root int) uint64 + func (bdsm *ByteDiskStorageManager) SetRoot(root int, val uint64) + func (bdsm *ByteDiskStorageManager) Update(loc uint64, o interface{}) error + type CachedDiskStorageManager struct + func NewCachedDiskStorageManager(diskstoragemanager *DiskStorageManager, maxObjects int) *CachedDiskStorageManager + func (cdsm *CachedDiskStorageManager) Close() error + func (cdsm *CachedDiskStorageManager) Fetch(loc uint64, o interface{}) error + func (cdsm *CachedDiskStorageManager) FetchCached(loc uint64) (interface{}, error) + func (cdsm *CachedDiskStorageManager) Flush() error + func (cdsm *CachedDiskStorageManager) Free(loc uint64) error + func (cdsm *CachedDiskStorageManager) Insert(o interface{}) (uint64, error) + func (cdsm *CachedDiskStorageManager) Name() string + func (cdsm *CachedDiskStorageManager) Rollback() error + func (cdsm *CachedDiskStorageManager) Root(root int) uint64 + func (cdsm *CachedDiskStorageManager) SetRoot(root int, val uint64) + func (cdsm *CachedDiskStorageManager) Update(loc uint64, o interface{}) error + type DiskStorageManager struct + func NewDiskStorageManager(filename string, readonly bool, onlyAppend bool, transDisabled bool, ...) *DiskStorageManager + func (dsm *DiskStorageManager) Fetch(loc uint64, o interface{}) error + func (dsm *DiskStorageManager) Insert(o interface{}) (uint64, error) + func (dsm *DiskStorageManager) Name() string + func (dsm *DiskStorageManager) Serialize(o interface{}) ([]byte, error) + func (dsm *DiskStorageManager) Update(loc uint64, o interface{}) error + type Manager interface + Close func() error + Fetch func(loc uint64, o interface{}) error + FetchCached func(loc uint64) (interface{}, error) + Flush func() error + Free func(loc uint64) error + Insert func(o interface{}) (uint64, error) + Name func() string + Rollback func() error + Root func(root int) uint64 + SetRoot func(root int, val uint64) + Update func(loc uint64, o interface{}) error + type ManagerError struct + Detail string + Managername string + Type error + func NewStorageManagerError(smeType error, smeDetail string, smeManagername string) *ManagerError + func (e *ManagerError) Error() string + type MemoryStorageManager struct + AccessMap map[uint64]int + Data map[uint64]interface{} + LocCount uint64 + Roots map[int]uint64 + func NewMemoryStorageManager(name string) *MemoryStorageManager + func (msm *MemoryStorageManager) Close() error + func (msm *MemoryStorageManager) Fetch(loc uint64, o interface{}) error + func (msm *MemoryStorageManager) FetchCached(loc uint64) (interface{}, error) + func (msm *MemoryStorageManager) Flush() error + func (msm *MemoryStorageManager) Free(loc uint64) error + func (msm *MemoryStorageManager) Insert(o interface{}) (uint64, error) + func (msm *MemoryStorageManager) Name() string + func (msm *MemoryStorageManager) Rollback() error + func (msm *MemoryStorageManager) Root(root int) uint64 + func (msm *MemoryStorageManager) SetRoot(root int, val uint64) + func (msm *MemoryStorageManager) String() string + func (msm *MemoryStorageManager) Update(loc uint64, o interface{}) error