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
| 43 | // The grpc package cannot directly call toLoadReport() as that would cause an |
| 44 | // import cycle. Hence this roundabout method is used. |
| 45 | type loadParser struct{} |
| 46 | |
| 47 | func (loadParser) Parse(md metadata.MD) any { |
| 48 | lr, err := internal.ToLoadReport(md) |
nothing calls this directly
no outgoing calls
no test coverage detected