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

Method Build

balancer/rls/internal/test/e2e/rls_child_policy.go:70–79  ·  view source on GitHub ↗
(cc balancer.ClientConn, opts balancer.BuildOptions)

Source from the content-addressed store, hash-verified

68func (bb bb) Name() string { return bb.name }
69
70func (bb bb) Build(cc balancer.ClientConn, opts balancer.BuildOptions) balancer.Balancer {
71 pf := balancer.Get(pickfirst.Name)
72 b := &bal{
73 Balancer: pf.Build(cc, opts),
74 bf: bb.bf,
75 done: grpcsync.NewEvent(),
76 }
77 go b.run()
78 return b
79}
80
81func (bb bb) ParseConfig(c json.RawMessage) (serviceconfig.LoadBalancingConfig, error) {
82 cfg := &RLSChildPolicyConfig{}

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
GetFunction · 0.92
NewEventFunction · 0.92
BuildMethod · 0.65

Tested by

no test coverage detected