1
0
mirror of https://github.com/taigrr/bitcask synced 2025-01-18 04:03:17 -08:00

Fix glfmt/golint issues

This commit is contained in:
James Mills
2019-10-14 16:55:47 +10:00
parent c4e12e0019
commit 65e9317d26
6 changed files with 24 additions and 8 deletions

View File

@@ -7,11 +7,14 @@ import (
"github.com/prologic/bitcask/internal"
)
// Indexer is an interface for loading and saving the index (an Adaptive Radix Tree)
type Indexer interface {
Load(path string, maxkeySize uint32) (art.Tree, bool, error)
Save(t art.Tree, path string) error
}
// NewIndexer returns an instance of the default `Indexer` implemtnation
// which perists the index (an Adaptive Radix Tree) as a binary blob on file
func NewIndexer() Indexer {
return &indexer{}
}