Versions in this module Expand all Collapse all v1 v1.0.10 May 15, 2022 v1.0.9 May 15, 2022 Changes in this version + const BPTreePageType + const BPTreePageTypeIndex + var NotFoundError = errors.New("NotFound") + func NewConsistent(replicas int, salt string, hf HashFunc) *consistentHash + type BPTree struct + LeafPage *BPTreePage + Order int + RootPage *BPTreePage + func NewBPTree(order int) BPTree + func (bp *BPTree) Delete(index int) (data interface{}, err error) + func (bp *BPTree) Insert(index int, data interface{}) + func (bp *BPTree) Search(index int) (data interface{}, err error) + type BPTreeNode struct + ChildPage *BPTreePage + Data interface{} + Index int + Next *BPTreeNode + Page *BPTreePage + type BPTreePage struct + Cap int + HeadNode *BPTreeNode + Len int + Next *BPTreePage + ParentNode *BPTreeNode + Pre *BPTreePage + Type int + func (page *BPTreePage) DeleteByIndex(index int) *BPTreeNode + func (page *BPTreePage) Insert(node *BPTreeNode) + func (page *BPTreePage) Split() (*BPTreePage, *BPTreePage) + func (page *BPTreePage) Up() + type HashFunc func(data []byte) uint32 + type Response struct + Code int + Data interface{}