Documentation ¶
Overview ¶
ketamaselector implements a list of servers where servers are picked based on Ketama consistent hashing algorithm
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerSet ¶
type ServerSet struct {
// contains filtered or unexported fields
}
func (*ServerSet) SetBuckets ¶
Sets buckets to be used. Label must be either a valid TCP address or a path to unix domain socket, in which case must contain a "/"
func (*ServerSet) SetServers ¶
Sets servers. With this method, the weight for all the servers are all equal. You must use SetBuckets() if you want to control that.
Click to show internal directories.
Click to hide internal directories.