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

Function setToggleMode

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

Source from the content-addressed store, hash-verified

881}
882
883func setToggleMode(val string) []bool {
884 switch val {
885 case toggleModeOn:
886 return []bool{true}
887 case toggleModeOff:
888 return []bool{false}
889 case toggleModeBoth:
890 return []bool{false, true}
891 default:
892 // This should never happen because a wrong value passed to this flag would
893 // be caught during flag.Parse().
894 return []bool{}
895 }
896}
897
898func setCompressorMode(val string) []string {
899 switch val {

Callers 1

processFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected