checkpoint
This commit is contained in:
@@ -24,6 +24,10 @@ type callOptions struct {
|
||||
|
||||
type publishOptions struct{}
|
||||
|
||||
type requestOptions struct {
|
||||
stream bool
|
||||
}
|
||||
|
||||
// Broker to be used for pub/sub
|
||||
func Broker(b broker.Broker) Option {
|
||||
return func(o *options) {
|
||||
@@ -80,3 +84,11 @@ func WithSelectOption(so selector.SelectOption) CallOption {
|
||||
o.selectOptions = append(o.selectOptions, so)
|
||||
}
|
||||
}
|
||||
|
||||
// Request Options
|
||||
|
||||
func StreamingRequest() RequestOption {
|
||||
return func(o *requestOptions) {
|
||||
o.stream = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user