Documentation
¶
Index ¶
- func AddNodes(nodes ...*HashNode) error
- func DeleteNodes(node *HashNode) error
- func ExistNode(node *HashNode) bool
- func GetNodeCount() int
- func GetVirtualNodeCount() int
- func Init(virtualNodesNums int, hashFunc ...HashFunc)
- func OptimizedHash(data []byte) uint32
- type HashFunc
- type HashNode
- type NodesSlice
- type SipProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptimizedHash ¶ added in v1.3.1
Types ¶
type NodesSlice ¶
type NodesSlice []uint32
NodesSlice 为了快速查找
func (NodesSlice) Len ¶
func (s NodesSlice) Len() int
func (NodesSlice) Less ¶
func (s NodesSlice) Less(i, j int) bool
func (NodesSlice) Swap ¶
func (s NodesSlice) Swap(i, j int)
type SipProfile ¶
Click to show internal directories.
Click to hide internal directories.