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

Struct loadParser

orca/orca.go:45–45  ·  view source on GitHub ↗

loadParser implements the Parser interface defined in `internal/balancerload` package. This interface is used by the client stream to parse load reports sent by the server in trailer metadata. The parsed loads are then sent to balancers via balancer.DoneInfo. The grpc package cannot directly call t

Source from the content-addressed store, hash-verified

43// The grpc package cannot directly call toLoadReport() as that would cause an
44// import cycle. Hence this roundabout method is used.
45type loadParser struct{}
46
47func (loadParser) Parse(md metadata.MD) any {
48 lr, err := internal.ToLoadReport(md)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected