package
2.2.2+incompatible
Repository: https://github.com/sharedcode/sop.git
Documentation: pkg.go.dev

# Functions

Compare can Compare a Comparable type.
New creates a new B-Tree instance.
Instantiate a B-Tree wrapper that enforces transaction session on each method(a.k.a.

# Structs

Btree manages items using B-tree data structure and algorithm.
Item contains key & value pair, plus the version number.
Node contains a B-Tree node's data.
StoreInterface contains different repositories needed/used by B-Tree to manage/access its data/objects from a backend.

# Interfaces

BtreeInterface defines publicly callable methods of Btree.
Comparable interface is used as a B-Tree store (generics) constraint for Key types.
Comparer interface specifies the Compare function.
ItemActionTracker specifies the CRUD action methods that can be done to manage Items.
MetaDataType specifies object meta data fields such as ID & Version.
NodeRepository interface specifies the node repository.