Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderSize = 12 TrailerSize = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
func (Item) StorageSize ¶
type Key ¶
type Key int64
Key is a priority key in the queue. It has to be unique to avoid overwriting other entries. This was written with unix nanosecond epoch stamps in mind.
func KeyFromString ¶
KeyFromString is the reverse of String()
type Location ¶
type Location struct {
// Key is the priority key of the first item in the batch
Key Key
// Off is the offset in bytes to the start of the batch in the vlog.
Off Off
// Len is the number of items in this batch.
// A zero len has a special meaning: this batch was deleted.
Len Off
}
Location references the location of a batch in dat.log
Click to show internal directories.
Click to hide internal directories.