ShouldFlush returns whether this kind of connection should actively flush data
()
| 122 | |
| 123 | // ShouldFlush returns whether this kind of connection should actively flush data |
| 124 | func (t Type) shouldFlush() bool { |
| 125 | // nolint: exhaustive |
| 126 | switch t { |
| 127 | case TypeWebsocket, TypeTCP, TypeControlStream: |
| 128 | return true |
| 129 | default: |
| 130 | return false |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | func (t Type) String() string { |
| 135 | // nolint: exhaustive |
no outgoing calls
no test coverage detected