Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned if a looked up resource was not found. Duplicate ErrNotFound from head.go. ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct { }
Decoder decodes series, sample, and tombstone records. The zero value is ready to use.
func (*Decoder) Tombstones ¶
func (d *Decoder) Tombstones(rec []byte, tstones []tombstones.Stone) ([]tombstones.Stone, error)
Tombstones appends tombstones in rec to the given slice.
type Encoder ¶
type Encoder struct { }
Encoder encodes series, sample, and tombstones records. The zero value is ready to use.
func (*Encoder) Tombstones ¶
func (e *Encoder) Tombstones(tstones []tombstones.Stone, b []byte) []byte
Tombstones appends the encoded tombstones to b and returns the resulting slice.
type Type ¶
type Type uint8
Type represents the data type of a record.
const ( // Unknown is returned for unrecognised WAL record types. Unknown Type = 255 // Series is used to match WAL records of type Series. Series Type = 1 // Samples is used to match WAL records of type Samples. Samples Type = 2 // Tombstones is used to match WAL records of type Tombstones. Tombstones Type = 3 )
Click to show internal directories.
Click to hide internal directories.