mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
24 lines
340 B
Go
24 lines
340 B
Go
package client
|
|
|
|
import (
|
|
rpc "github.com/youtube/vitess/go/rpcplus"
|
|
)
|
|
|
|
type rpcStream struct {
|
|
request Request
|
|
call *rpc.Call
|
|
client *rpc.Client
|
|
}
|
|
|
|
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()
|
|
}
|