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

Method Parse

test/balancer_test.go:289–295  ·  view source on GitHub ↗
(md metadata.MD)

Source from the content-addressed store, hash-verified

287type testLoadParser struct{}
288
289func (*testLoadParser) Parse(md metadata.MD) any {
290 vs := md.Get(loadMDKey)
291 if len(vs) == 0 {
292 return nil
293 }
294 return vs[0]
295}
296
297func init() {
298 balancerload.SetParser(&testLoadParser{})

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected