Documentation ¶
Index ¶
- Constants
- Variables
- type FreeList
- type Tree
- func (tree *Tree) Clone() *Tree
- func (tree *Tree) Delete(key []byte)
- func (tree *Tree) Find(key []byte) bool
- func (tree *Tree) Insert(key []byte)
- func (tree *Tree) ReplaceOrInsert(key []byte, val interface{}) interface{}
- func (tree Tree) Walk(f func(prefixes [][]byte, val interface{}) bool)
- func (tree Tree) WalkWithPrefix(prefix []byte, f func(prefixes [][]byte, val interface{}) bool)
- func (tree *Tree) WriteTo(writer io.Writer, marshaler func(interface{}) ([]byte, error)) (int64, error)
- func (tree *Tree) WriteToWithGzip(writer io.Writer, marshaler func(interface{}) ([]byte, error)) (int64, error)
Constants ¶
View Source
const ( PushKey = '=' Push = '+' Pop = '-' )
Variables ¶
View Source
var DefaultFreeListSize = 32
View Source
var Empty = []byte{'e', 'm', 'p', 't', 'y'}
Functions ¶
This section is empty.
Types ¶
type FreeList ¶
type FreeList struct {
// contains filtered or unexported fields
}
func NewFreeList ¶
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func ReBuildTree ¶
func ReBuildTreeWithGzip ¶
func (*Tree) ReplaceOrInsert ¶
func (Tree) WalkWithPrefix ¶
Click to show internal directories.
Click to hide internal directories.