MCPcopy Index your code

hub / github.com/buraksezer/consistent / functions

Functions46 in github.com/buraksezer/consistent

↓ 20 callersMethodString
()
consistent.go:87
↓ 14 callersFunctionNew
New creates and returns a new Consistent object.
consistent.go:123
↓ 10 callersMethodSum64
([]byte)
consistent.go:82
↓ 9 callersMethodAdd
Add adds a new member to the consistent hash circle.
consistent.go:244
↓ 9 callersFunctionnewConfig
()
consistent_test.go:33
↓ 5 callersMethodGetPartitionOwner
GetPartitionOwner returns the owner of the given partition.
consistent.go:310
↓ 5 callersMethodLocateKey
LocateKey finds a home for given key
consistent.go:328
↓ 4 callersMethodAverageLoad
AverageLoad exposes the current average load.
consistent.go:168
↓ 4 callersMethodGetMembers
GetMembers returns a thread-safe copy of members. If there are no members, it returns an empty slice of Member.
consistent.go:155
↓ 3 callersMethodFindPartitionID
FindPartitionID returns partition id for given key.
consistent.go:304
↓ 3 callersMethodGetClosestN
GetClosestN returns the closest N member to a key in the hash ring. This may be useful to find members for replication.
consistent.go:384
↓ 3 callersMethoddistributePartitions
()
consistent.go:208
↓ 2 callersMethodRemove
Remove removes a member from the consistent hash circle.
consistent.go:266
↓ 2 callersMethodadd
(member Member)
consistent.go:228
↓ 2 callersMethodaverageLoad
()
consistent.go:175
↓ 2 callersMethodgetClosestN
(partID, count int)
consistent.go:333
↓ 2 callersMethodgetPartitionOwner
getPartitionOwner returns the owner of the given partition. It's not thread-safe.
consistent.go:318
↓ 1 callersMethodLoadDistribution
LoadDistribution exposes load distribution of members.
consistent.go:291
↓ 1 callersMethoddelSlice
(val uint64)
consistent.go:256
↓ 1 callersMethoddistributeWithLoad
(partID, idx int, partitions map[int]*Member, loads map[string]float64)
consistent.go:184
FunctionBenchmarkAddRemove
(b *testing.B)
consistent_test.go:186
FunctionBenchmarkGetClosestN
(b *testing.B)
consistent_test.go:209
FunctionBenchmarkLocateKey
(b *testing.B)
consistent_test.go:197
MethodGetClosestNForPartition
GetClosestNForPartition returns the closest N member for given partition. This may be useful to find members for replication.
consistent.go:391
MethodString
()
consistent_test.go:44
MethodString
()
_examples/relocation_percentage.go:14
MethodString
()
_examples/add_and_list.go:12
MethodString
()
_examples/load_distribution.go:15
MethodString
()
_examples/sample.go:15
MethodSum64
(data []byte)
consistent_test.go:50
MethodSum64
(data []byte)
_examples/relocation_percentage.go:20
MethodSum64
(data []byte)
_examples/add_and_list.go:18
MethodSum64
(data []byte)
_examples/load_distribution.go:21
MethodSum64
(data []byte)
_examples/sample.go:23
FunctionTestConsistentAdd
(t *testing.T)
consistent_test.go:56
FunctionTestConsistentClosestMembers
(t *testing.T)
consistent_test.go:161
FunctionTestConsistentInsufficientMemberCount
(t *testing.T)
consistent_test.go:146
FunctionTestConsistentLoad
(t *testing.T)
consistent_test.go:97
FunctionTestConsistentLocateKey
(t *testing.T)
consistent_test.go:126
FunctionTestConsistentRemove
(t *testing.T)
consistent_test.go:78
Functioninit
()
_examples/relocation_percentage.go:24
Functioninit
()
_examples/load_distribution.go:25
Functionmain
()
_examples/relocation_percentage.go:28
Functionmain
()
_examples/add_and_list.go:22
Functionmain
()
_examples/load_distribution.go:29
Functionmain
()
_examples/sample.go:28