Implements the streamer interface.
| 11 | |
| 12 | // Implements the streamer interface. |
| 13 | type rpcStream struct { |
| 14 | err error |
| 15 | request Request |
| 16 | response Response |
| 17 | codec codec.Codec |
| 18 | context context.Context |
| 19 | |
| 20 | closed chan bool |
| 21 | |
| 22 | // release releases the connection back to the pool |
| 23 | release func(err error) |
| 24 | id string |
| 25 | sync.RWMutex |
| 26 | // Indicates whether connection should be closed directly. |
| 27 | close bool |
| 28 | |
| 29 | // signal whether we should send EOS |
| 30 | sendEOS bool |
| 31 | } |
| 32 | |
| 33 | func (r *rpcStream) isClosed() bool { |
| 34 | select { |
nothing calls this directly
no outgoing calls
no test coverage detected