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

Function getConfigKey

balancer/weightedtarget/weightedtarget_test.go:128–132  ·  view source on GitHub ↗
(attr *attributes.Attributes)

Source from the content-addressed store, hash-verified

126}
127
128func getConfigKey(attr *attributes.Attributes) (string, bool) {
129 v := attr.Value(configKey{})
130 name, ok := v.(string)
131 return name, ok
132}
133
134func (b *testConfigBalancer) UpdateClientConnState(s balancer.ClientConnState) error {
135 c, ok := s.BalancerConfig.(stringBalancerConfig)

Callers 1

waitForNewSubConnsFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected