Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashRing ¶
type HashRing struct { Nodes map[uint32]string // 节点哈希和KEY的HashRing,键是哈希值,值是节点Key // contains filtered or unexported fields }
func NewHashRing ¶
func NewHashRing() *HashRing
type UInt32Slice ¶
type UInt32Slice []uint32
func (UInt32Slice) Len ¶
func (s UInt32Slice) Len() int
func (UInt32Slice) Less ¶
func (s UInt32Slice) Less(i, j int) bool
func (UInt32Slice) Swap ¶
func (s UInt32Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.