MCPcopy
hub / github.com/grpc/grpc-go / RegisterRLSChildPolicy

Function RegisterRLSChildPolicy

balancer/rls/internal/test/e2e/rls_child_policy.go:59–61  ·  view source on GitHub ↗

RegisterRLSChildPolicy registers a balancer builder with the given name, to be used as a child policy for the RLS LB policy. The child policy uses a pickfirst balancer under the hood to send all traffic to the single backend specified by the `RLSChildPolicyTargetNameField` field in its configuratio

(name string, bf *BalancerFuncs)

Source from the content-addressed store, hash-verified

57// to the single backend specified by the `RLSChildPolicyTargetNameField` field
58// in its configuration which looks like: {"Backend": "Backend-address"}.
59func RegisterRLSChildPolicy(name string, bf *BalancerFuncs) {
60 balancer.Register(bb{name: name, bf: bf})
61}
62
63type bb struct {
64 name string

Calls 1

RegisterFunction · 0.92