Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultWeight = 10 //节点默认权重
)
View Source
var (
ErrNoInstance = errors.New("service has no instance")
)
Functions ¶
func NewRandomScheduler ¶
func NewRandomScheduler() *randomScheduler
func NewRoundRobinScheduler ¶
func NewRoundRobinScheduler() *roundRobinScheduler
func NewSmoothWeightedScheduler ¶
func NewSmoothWeightedScheduler() *smoothWeightedScheduler
Types ¶
Click to show internal directories.
Click to hide internal directories.