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

Function convertRPCName

interop/xds/client/client.go:104–113  ·  view source on GitHub ↗
(in string)

Source from the content-addressed store, hash-verified

102}
103
104func convertRPCName(in string) string {
105 switch in {
106 case unaryCall:
107 return testpb.ClientConfigureRequest_UNARY_CALL.String()
108 case emptyCall:
109 return testpb.ClientConfigureRequest_EMPTY_CALL.String()
110 }
111 logger.Warningf("unrecognized rpc type: %s", in)
112 return in
113}
114
115// copyStatsMap makes a copy of the map.
116func copyStatsMap(originalMap map[string]int32) map[string]int32 {

Callers 2

startRPCMethod · 0.85
finishRPCMethod · 0.85

Calls 2

StringMethod · 0.65
WarningfMethod · 0.65

Tested by

no test coverage detected