2015-06-01 18:55:27 +01:00
|
|
|
package client
|
|
|
|
|
|
|
|
type rpcStream struct {
|
|
|
|
request Request
|
2015-12-01 23:32:23 +00:00
|
|
|
call *call
|
|
|
|
client *client
|
2015-06-01 18:55:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *rpcStream) Request() Request {
|
|
|
|
return r.request
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *rpcStream) Error() error {
|
|
|
|
return r.call.Error
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *rpcStream) Close() error {
|
|
|
|
return r.client.Close()
|
|
|
|
}
|