Documentation ¶
Index ¶
- func OpenDirectory(directory string) (storagecommon.EntityStorage, error)
- type FileSystemEntityStorage
- func (es *FileSystemEntityStorage) Close()
- func (es *FileSystemEntityStorage) Exists(typeName string, entityID common.EntityID) (exists bool, err error)
- func (es *FileSystemEntityStorage) IsEOF(err error) bool
- func (es *FileSystemEntityStorage) List(typeName string) ([]common.EntityID, error)
- func (es *FileSystemEntityStorage) Read(typeName string, entityID common.EntityID) (interface{}, error)
- func (es *FileSystemEntityStorage) Write(typeName string, entityID common.EntityID, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenDirectory ¶
OpenDirectory opens the directory as filesystem entity storage
Types ¶
type FileSystemEntityStorage ¶
type FileSystemEntityStorage struct {
// contains filtered or unexported fields
}
FileSystemEntityStorage is an implementation of Entity Storage using filesystem
func (*FileSystemEntityStorage) Close ¶
func (es *FileSystemEntityStorage) Close()
Close the entity storage
func (*FileSystemEntityStorage) Exists ¶
func (es *FileSystemEntityStorage) Exists(typeName string, entityID common.EntityID) (exists bool, err error)
Exists checks if entity is in entity storage
func (*FileSystemEntityStorage) IsEOF ¶
func (es *FileSystemEntityStorage) IsEOF(err error) bool
IsEOF check if the error is an EOF error
func (*FileSystemEntityStorage) List ¶
func (es *FileSystemEntityStorage) List(typeName string) ([]common.EntityID, error)
List retrives all entity IDs in entity storage of specified type
Click to show internal directories.
Click to hide internal directories.