Documentation ¶
Overview ¶
Package random implements Random load balance strategy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandomLoadBalance ¶
func NewRandomLoadBalance() loadbalance.LoadBalance
NewRandomLoadBalance returns a random load balance instance.
Set random probabilities by weight, and the request will be sent to provider randomly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.