Documentation
¶
Overview ¶
Package ring implements a consistent hashing ring.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ring ¶
type Ring struct {
// contains filtered or unexported fields
}
Ring implements a consistent hashing ring.
func New ¶
New creates a new consistent hash ring. replicas: Number of virtual nodes per physical node (e.g., 50-200). nodes: Optional list of initial physical nodes.
Click to show internal directories.
Click to hide internal directories.