Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/dataobj/internal/encoding/encoding.go

24 lines
641 B

// Package encoding provides utilities for encoding and decoding data objects.
package encoding
import "errors"
var (
magic = []byte("THOR")
)
const (
fileFormatVersion = 0x1
streamsFormatVersion = 0x1
logsFormatVersion = 0x1
)
var (
ErrElementExist = errors.New("open element already exists")
ErrClosed = errors.New("element is closed")
// errElementNoExist is used when a child element tries to notify its parent
// of it closing but the parent doesn't have a child open. This would
// indicate a bug in the encoder so it's not exposed to callers.
errElementNoExist = errors.New("open element does not exist")
)