(val string)
| 896 | } |
| 897 | |
| 898 | func 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 | |
| 911 | func setRecvBufferPool(val string) []string { |
| 912 | switch val { |