# Functions
NewChunkDiskMapper returns a new writer against the given directory using the default head chunk file duration.
NewDirReader returns a new Reader against sequentially numbered files in the given directory.
NewWriter returns a new writer against the given directory using the default segment size.
NewWriterWithSegSize returns a new writer against the given directory and allows setting a custom size for the segments.
# Constants
ChunkEncodingSize defines the size of the chunk encoding part.
Segment header fields constants.
CRCSize is the size of crc32 sum on disk.
DefaultChunkSegmentSize is the default chunks segment size.
HeadChunkFileHeaderSize is the total size of the header for the head chunk file.
MagicChunks is 4 bytes at the head of a series file.
MagicChunksSize is the size in bytes of MagicChunks.
MagicHeadChunks is 4 bytes at the beginning of a head chunk file.
MaxChunkLengthFieldSize defines the maximum size of the data length part.
128 MiB.
MaxHeadChunkMetaSize is the max size of an mmapped chunks minus the chunks data.
MintMaxtSize is the size of the mint/maxt for head chunk file and chunks.
SegmentHeaderSize defines the total size of the header part.
SeriesRefSize is the size of series reference on disk.
# Variables
ErrChunkDiskMapperClosed returned by any method indicates that the ChunkDiskMapper was closed.
HeadChunkFilePreallocationSize is the size to which the m-map file should be preallocated when a new file is cut.
# Structs
ChunkDiskMapper is for writing the Head block chunks to the disk and access chunks via mmapped file.
corruptionErr is an error that's returned when corruption is encountered.
Meta holds information about a chunk of data.
Reader implements a ChunkReader for a serialized byte stream of series data.
Writer implements the ChunkWriter interface for the standard serialization format.