Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ketama ¶
type Ketama struct {
// contains filtered or unexported fields
}
Ketama is an implementation of consistent-hash
type Option ¶
type Option func(option *Options)
Option is a function type used to set Options
func WithGoroutineSafe ¶
func WithGoroutineSafe() Option
WithGoroutineSafe is used to config a Ketama with goroutine-safe
func WithReplicas ¶
WithReplicas is used to config the hash replicas of a Ketama
Click to show internal directories.
Click to hide internal directories.