Documentation ¶
Index ¶
- Variables
- func AppendKeys(keys art.Tree, items []Item)
- func Consume(items []Item, offset int64) (int64, int64, error)
- func Get(items []Item, offset int64) (int64, error)
- func KeyHash(key []byte) uint64
- func KeyHashEncoded(h uint64) []byte
- func Keys(keys art.Tree, keyHash []byte) ([]int64, error)
- func Time(items []Item, ts int64) (int64, error)
- func Write(path string, opts Params, index []Item) error
- type Item
- type Params
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCorrupted = errors.New("index corrupted")
View Source
var ErrIndexEmpty = fmt.Errorf("%w: no items", message.ErrInvalidOffset)
Functions ¶
func AppendKeys ¶
func KeyHashEncoded ¶ added in v0.2.1
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) SyncAndClose ¶
Click to show internal directories.
Click to hide internal directories.