Response type for Stream is an interface
This commit is contained in:
parent
b0bc806a57
commit
decb70b97c
@ -82,7 +82,9 @@ func extractEndpoint(method reflect.Method) *registry.Endpoint {
|
||||
return nil
|
||||
}
|
||||
|
||||
if rspType.Kind() == reflect.Func {
|
||||
// are we dealing with a stream?
|
||||
switch rspType.Kind() {
|
||||
case reflect.Func, reflect.Interface:
|
||||
stream = true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user