Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler interface { // Next find the next selected item. Next() string // Add adds the new item to selection pool. Add(id string, weight int) // Remove remove an item from pool. Remove(id string) // Clear remove all of the items and reset the scheduler state. Clear() }
Scheduler performs load balancer algorithm.
Click to show internal directories.
Click to hide internal directories.