Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServerWeightValue ¶
func GetServerWeightValue(mdata interface{}) int
Types ¶
type GRPC_BALANCER_NAME ¶
type GRPC_BALANCER_NAME string
const ( BALANCER_DEFAULT_RR_NAME = "round_robin" //默认grpc实现 BALANCER_RandomWeight_NAME GRPC_BALANCER_NAME = "RandomWeight" BALANCER_SimpleWeightRR_NAME GRPC_BALANCER_NAME = "SimpleWeightRR" BALANCER_LeastConn_NAME GRPC_BALANCER_NAME = "LeastConn" )
type LeastConnPicker ¶
func (*LeastConnPicker) Pick ¶
func (p *LeastConnPicker) Pick(info balancer.PickInfo) (balancer.PickResult, error)
Click to show internal directories.
Click to hide internal directories.