1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

Update options to be public. This means people can implement the interfaces and actually use the options

This commit is contained in:
Asim
2015-12-31 18:11:46 +00:00
parent c2154fd5cc
commit 64b45f7846
17 changed files with 203 additions and 200 deletions

@ -5,11 +5,11 @@ type rpcRequest struct {
method string
contentType string
request interface{}
opts requestOptions
opts RequestOptions
}
func newRpcRequest(service, method string, request interface{}, contentType string, reqOpts ...RequestOption) Request {
var opts requestOptions
var opts RequestOptions
for _, o := range reqOpts {
o(&opts)
@ -41,5 +41,5 @@ func (r *rpcRequest) Request() interface{} {
}
func (r *rpcRequest) Stream() bool {
return r.opts.stream
return r.opts.Stream
}