SYMBOL INDEX (66 symbols across 7 files) FILE: allnodes_test.go function generateWeights (line 12) | func generateWeights(n int) map[string]int { function generateNodes (line 20) | func generateNodes(n int) []string { function TestListOf1000Nodes (line 28) | func TestListOf1000Nodes(t *testing.T) { FILE: benchmark_test.go function BenchmarkNew (line 5) | func BenchmarkNew(b *testing.B) { function BenchmarkHashes (line 13) | func BenchmarkHashes(b *testing.B) { function BenchmarkHashesSingle (line 37) | func BenchmarkHashesSingle(b *testing.B) { FILE: example_test.go function ExampleGetAllNodes (line 8) | func ExampleGetAllNodes() { function ExampleCustomHashError (line 15) | func ExampleCustomHashError() { function ExampleCustomHash (line 21) | func ExampleCustomHash() { function ExampleNewHashFunc (line 29) | func ExampleNewHashFunc() { FILE: hash.go type HashSum (line 10) | type HashSum struct method Use (line 14) | func (r *HashSum) Use( method FirstBytes (line 61) | func (r *HashSum) FirstBytes(n int) *HashSum { method LastBytes (line 68) | func (r *HashSum) LastBytes(n int) *HashSum { function NewHash (line 49) | func NewHash(hasher func() hash.Hash) *HashSum { FILE: hashring.go type HashKey (line 18) | type HashKey interface type HashKeyOrder (line 21) | type HashKeyOrder method Len (line 23) | func (h HashKeyOrder) Len() int { return len(h) } method Swap (line 24) | func (h HashKeyOrder) Swap(i, j int) { h[i], h[j] = h[j], h[i] } method Less (line 25) | func (h HashKeyOrder) Less(i, j int) bool { type HashFunc (line 29) | type HashFunc type HashRing (line 31) | type HashRing struct method Size (line 87) | func (h *HashRing) Size() int { method UpdateWithWeights (line 91) | func (h *HashRing) UpdateWithWeights(weights map[string]int) { method generateCircle (line 114) | func (h *HashRing) generateCircle() { method GetNode (line 139) | func (h *HashRing) GetNode(stringKey string) (node string, ok bool) { method GetNodePos (line 147) | func (h *HashRing) GetNodePos(stringKey string) (pos int, ok bool) { method GenKey (line 165) | func (h *HashRing) GenKey(key string) HashKey { method GetNodes (line 172) | func (h *HashRing) GetNodes(stringKey string, size int) (nodes []strin... method AddNode (line 201) | func (h *HashRing) AddNode(node string) *HashRing { method AddWeightedNode (line 205) | func (h *HashRing) AddWeightedNode(node string, weight int) *HashRing { method UpdateWeightedNode (line 235) | func (h *HashRing) UpdateWeightedNode(node string, weight int) *HashRi... method RemoveNode (line 264) | func (h *HashRing) RemoveNode(node string) *HashRing { type Uint32HashKey (line 39) | type Uint32HashKey method Less (line 41) | func (k Uint32HashKey) Less(other HashKey) bool { function New (line 45) | func New(nodes []string) *HashRing { function NewWithHash (line 49) | func NewWithHash( function NewWithWeights (line 64) | func NewWithWeights(weights map[string]int) *HashRing { function NewWithHashAndWeights (line 68) | func NewWithHashAndWeights( FILE: hashring_test.go function expectWeights (line 11) | func expectWeights(t *testing.T, ring *HashRing, expectedWeights map[str... type testPair (line 18) | type testPair struct type testNodes (line 23) | type testNodes struct function assert2Nodes (line 28) | func assert2Nodes(t *testing.T, prefix string, ring *HashRing, data []te... function assertNodes (line 43) | func assertNodes(t *testing.T, prefix string, ring *HashRing, allExpecte... function expectNodesABC (line 55) | func expectNodesABC(t *testing.T, prefix string, ring *HashRing) { function expectNodeRangesABC (line 70) | func expectNodeRangesABC(t *testing.T, prefix string, ring *HashRing) { function expectNodesABCD (line 84) | func expectNodesABCD(t *testing.T, prefix string, ring *HashRing) { function TestNew (line 98) | func TestNew(t *testing.T) { function TestNewEmpty (line 106) | func TestNewEmpty(t *testing.T) { function TestForMoreNodes (line 121) | func TestForMoreNodes(t *testing.T) { function TestForEqualNodes (line 131) | func TestForEqualNodes(t *testing.T) { function TestNewSingle (line 141) | func TestNewSingle(t *testing.T) { function TestNewWeighted (line 163) | func TestNewWeighted(t *testing.T) { function TestRemoveNode (line 186) | func TestRemoveNode(t *testing.T) { function TestAddNode (line 208) | func TestAddNode(t *testing.T) { function TestAddNode2 (line 223) | func TestAddNode2(t *testing.T) { function TestAddNode3 (line 233) | func TestAddNode3(t *testing.T) { function TestDuplicateNodes (line 277) | func TestDuplicateNodes(t *testing.T) { function TestAddWeightedNode (line 294) | func TestAddWeightedNode(t *testing.T) { function TestUpdateWeightedNode (line 318) | func TestUpdateWeightedNode(t *testing.T) { function TestRemoveAddNode (line 344) | func TestRemoveAddNode(t *testing.T) { function TestRemoveAddWeightedNode (line 383) | func TestRemoveAddWeightedNode(t *testing.T) { function TestAddRemoveNode (line 446) | func TestAddRemoveNode(t *testing.T) { FILE: key.go type Int64PairHashKey (line 8) | type Int64PairHashKey struct method Less (line 13) | func (k *Int64PairHashKey) Less(other HashKey) bool { function NewInt64PairHashKey (line 21) | func NewInt64PairHashKey(bytes []byte) (HashKey, error) {