Documentation ¶
Overview ¶
storage is the package which implements the underlying, on-disk storage API for Torus servers. A single node can be tested with just a storage implementation, but the distributor replaces it as a virtual implementation of a much larger storage pool, provided by the cluster. This is storage underneath a single node.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMFile ¶
Types ¶
type MFile ¶
type MFile struct {
// contains filtered or unexported fields
}
func CreateOrOpenMFile ¶
func (*MFile) GetBlock ¶
GetBlock returns the n-th block as a byte slice, including any trailing zero padding. The returned bytes are from the underlying mmap'd buffer and will be invalid after a call to Close().
Click to show internal directories.
Click to hide internal directories.