Documentation ¶
Index ¶
- Constants
- Variables
- func AssertAny(t *testing.T, got interface{}, expected interface{}) bool
- func AssertBool(t *testing.T, got bool, expected bool) bool
- func AssertInt(t *testing.T, got int, expected int) bool
- func AssertSize(t *testing.T, got int, expected int) bool
- func AssertString(t *testing.T, got string, expected string) bool
- func NewHashTree(shardCount int) *hashTree
- func NewRBTree() *rbTree
- type Entry
- type EntryKey
- type EntryValue
- type Item
- type Iterator
- type RBTree
Constants ¶
View Source
const ( RED = 0 BLACK = 1 )
View Source
const ( LESS = -1 EQUAL = 0 GREATER = 1 )
Variables ¶
View Source
var DEBUG = true
Functions ¶
func NewHashTree ¶
func NewHashTree(shardCount int) *hashTree
NewHashTree returns a new sharded hash tree
Types ¶
type Entry ¶
type Entry struct { Key EntryKey Value EntryValue }
Entry represents a key value pair for the ordered map. If the user decides to change any of this, take care to ensure you implement the Item interface properly in order to keep everything in working order.
func NewEntry ¶
func NewEntry(key EntryKey, value EntryValue) Entry
type EntryValue ¶
type EntryValue = string
Click to show internal directories.
Click to hide internal directories.