Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsistentHash ¶
type ConsistentHash struct {
// contains filtered or unexported fields
}
func NewConsistentHash ¶
func NewConsistentHash(rep int, hashFunc func([]byte) uint32) *ConsistentHash
func (*ConsistentHash) Add ¶
func (ch *ConsistentHash) Add(nodes ...Node) (err error)
func (*ConsistentHash) Delete ¶
func (ch *ConsistentHash) Delete(nodes ...Node) (err error)
func (*ConsistentHash) Show ¶
func (ch *ConsistentHash) Show()
type NormalBalancer ¶
type NormalBalancer struct {
// contains filtered or unexported fields
}
func NewNormalBalancer ¶
func NewNormalBalancer() *NormalBalancer
func (*NormalBalancer) Add ¶
func (nb *NormalBalancer) Add(nodes ...Node) (err error)
func (*NormalBalancer) Delete ¶
func (nb *NormalBalancer) Delete(nodes ...Node) (err error)
Click to show internal directories.
Click to hide internal directories.