Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RR round robin. RR = "rr" // Shuffle shuffle. Shuffle = "shuffle" // ConsistentHash consistent hash. ConsistentHash = "consistenthash" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsistentHashLB ¶
ConsistentHashLB consistent hash algorithm interface.
type Factory ¶
type Factory interface { RR() RRLB Shuffle() ShuffleLB ConsistentHash() ConsistentHashLB }
Factory load balance factory.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.