MCPcopy
hub / github.com/micro/go-micro / rpcStream

Struct rpcStream

client/rpc_stream.go:13–31  ·  view source on GitHub ↗

Implements the streamer interface.

Source from the content-addressed store, hash-verified

11
12// Implements the streamer interface.
13type 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
33func (r *rpcStream) isClosed() bool {
34 select {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected