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

Function setCompressorMode

benchmark/benchmain/main.go:898–909  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

896}
897
898func setCompressorMode(val string) []string {
899 switch val {
900 case compModeNop, compModeGzip, compModeOff:
901 return []string{val}
902 case compModeAll:
903 return []string{compModeNop, compModeGzip, compModeOff}
904 default:
905 // This should never happen because a wrong value passed to this flag would
906 // be caught during flag.Parse().
907 return []string{}
908 }
909}
910
911func setRecvBufferPool(val string) []string {
912 switch val {

Callers 1

processFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected