MCPcopy Create free account
hub / github.com/apache/dubbo-go / WithClientLoadBalanceConsistentHashing

Function WithClientLoadBalanceConsistentHashing

client/options.go:761–765  ·  view source on GitHub ↗

========== LoadBalance Strategy ==========

()

Source from the content-addressed store, hash-verified

759// ========== LoadBalance Strategy ==========
760
761func WithClientLoadBalanceConsistentHashing() ClientOption {
762 return func(opts *ClientOptions) {
763 opts.overallReference.Loadbalance = constant.LoadBalanceKeyConsistentHashing
764 }
765}
766
767func WithClientLoadBalanceLeastActive() ClientOption {
768 return func(opts *ClientOptions) {

Callers 1

Calls

no outgoing calls

Tested by 1