2015-06-01 20:55:27 +03:00
|
|
|
package client
|
|
|
|
|
|
|
|
type rpcStream struct {
|
|
|
|
request Request
|
2015-12-02 02:32:23 +03:00
|
|
|
call *call
|
|
|
|
client *client
|
2015-06-01 20:55:27 +03: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()
|
|
|
|
}
|