Documentation
¶
Overview ¶
Package mcdb contains multiple Constant Databases (DJB's cdb), as one cdb can only contain 4GiB maximum.
This is a thin wrapper over github.com/colinmarc/cdb.
Index ¶
Constants ¶
View Source
const FileName = "mcdb-%d,%b.cdb"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator iterates through all keys of all CDB files.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is a reader for multiple CDB files.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is the writer. It needs the number of tables beforehand.
func NewWriter ¶
NewWriter returns a new Writer.
The next power-of-two number of tables are created, so for example with n=3, 4 tables are created, containing maximum 16GiB of data.
Click to show internal directories.
Click to hide internal directories.