Documentation ¶
Index ¶
Constants ¶
View Source
const DataFilePermission fs.FileMode = 0644
DataFilePermission permission of every single data file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOHandler ¶
type IOHandler interface { // Read Read corresponding data from the specific position of a file Read([]byte, int64) (int, error) // Write Write data to a file Write([]byte) (int, error) // Sync Persistent data Sync() error // Close Close a file Close() error // Size Get the size of a data file (unit: B) Size() (int64, error) }
IOHandler Abstract I/O interface
type IOHandlerType ¶
type IOHandlerType = int8
const ( FileIOHandler IOHandlerType = iota + 1 MemoryMappedIOHandler )
Click to show internal directories.
Click to hide internal directories.