Documentation ¶
Overview ¶
Package disk implements the ability to read and write blocks to disk writing each block to a separate block numbered file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
// contains filtered or unexported fields
}
Disk represents the serialization implementation for reading and storing blocks in their own separate files on disk. This implements the database.Storage interface.
func (*Disk) Close ¶
Close in this implemenation has nothing to do since a new file is written to disk for each now block and then immediately closed.
func (*Disk) ForEach ¶
ForEach returns an iterator to walk through all the blocks starting with block number 1.
Click to show internal directories.
Click to hide internal directories.