package
1.0.50
Repository: https://github.com/mirwing/go-datastructures.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns a configuration with the persister set.
Load returns a ReadableTree from persistence.
New creates a new ReadableTree using the provided config.

# Variables

ErrNodeNotFound is returned when the cacher could not find a node.
ErrTreeNotFound is returned when a tree with the provided key could not be loaded.

# Structs

Config defines all the parameters available to the UB-tree.
No description provided by the author
Key a convenience struct that holds both an id and a value.
Node represents either a leaf node or an internal node.
Payload is very basic and simply contains a key and a payload.
Tr itself is exported so that the code generated for serialization/deserialization works on Tr.

# Interfaces

MutableTree represents a mutable version of the btree.
Perister describes the interface of the different implementations.
ReadableTree represents the operations that can be performed on a read-only version of the tree.
Tree describes the common functionality of both the read-only and mutable forms of a btree.

# Type aliases

Comparator is used to determine ordering in the tree.
ID exists because i'm tired of writing []byte.
No description provided by the author