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

Method ParseConfig

service_config_test.go:96–102  ·  view source on GitHub ↗
(c json.RawMessage)

Source from the content-addressed store, hash-verified

94}
95
96func (parseBalancerBuilder) ParseConfig(c json.RawMessage) (serviceconfig.LoadBalancingConfig, error) {
97 d := pbbData{}
98 if err := json.Unmarshal(c, &d); err != nil {
99 return nil, err
100 }
101 return d, nil
102}
103
104func (parseBalancerBuilder) Build(balancer.ClientConn, balancer.BuildOptions) balancer.Balancer {
105 panic("unimplemented")

Callers

nothing calls this directly

Calls 1

UnmarshalMethod · 0.65

Tested by

no test coverage detected