package
1.4.0
Repository: https://github.com/krotik/eliasdb.git
Documentation: pkg.go.dev

# Packages

Package file deals with low level file storage and transaction management.
Package paging contains functions and constants necessary for paging of records.
Package slotting contains managers which deal with slots on pages.
Package util contains utility functions for slot headers.

# Functions

DataFileExist checks if the main datastore file exists.
NewByteDiskStorageManager creates a new disk storage manager with optional transaction management which can only store byte slices.
NewCachedDiskStorageManager creates a new cache wrapper for a DiskStorageManger.
NewDiskStorageManager creates a new disk storage manager with optional transaction management.
NewMemoryStorageManager creates a new MemoryStorageManager */.
NewStorageManagerError returns a new StorageManager specific error.

# Constants

The address will not be accessible via FetchCached nor Fetch.
The address will not be accessible via FetchCached nor Fetch.
The address will not be accessible via Fetch.
The address will not be accessible via Free.
The address will not be accessible via Insert.
The address will not be accessible via FetchCached.
The address will not be accessible via Update.
BlockSizeFreeSlots is the block for a free slot files.
BlockSizeLogicalSlots is the block for a logical slot file.
BlockSizePhysicalSlots is the block for a physical slot file.
FileSiffixLockfile is the file ending for lockfiles */.
FileSuffixLogicalFreeSlots is the file ending for a free logical slot storage */.
FileSuffixLogicalSlots is the file ending for a logical slot storage */.
FileSuffixPhysicalFreeSlots is the file ending for a free physical slot storage */.
FileSuffixPhysicalSlots is the file ending for a physical slot storage */.
RootIDVersion is the root id holding the version.
VERSION constains the version of the storage API */.

# Variables

BufferPool is a pool of byte buffers.
Common storage manager related errors.
ErrReadonly is returned when attempting a write operation on a readonly datastore.
Common storage manager related errors.
MsmCallNumClose counter how often Close is called */.
MsmCallNumFlush counter how often Flush is called */.
MsmCallNumRollback counter how often Rollback is called */.
MsmRetClose nil or the error which should be returned by a Close call */.
MsmRetFlush nil or the error which should be returned by a Flush call */.
MsmRetRollback nil or the error which should be returned by a Rollback call */.

# Structs

ByteDiskStorageManager is a disk storage manager which can only store byte slices.
CachedDiskStorageManager data structure */.
DiskStorageManager is a storage manager which can store any gob serializable datastructure.
ManagerError is a storage manager related error.
MemoryStorageManager data structure */.

# Interfaces

Manager describes an abstract storage manager.