callback is a method callback which was registered in the server
| 37 | |
| 38 | // callback is a method callback which was registered in the server |
| 39 | type callback struct { |
| 40 | rcvr reflect.Value // receiver of method |
| 41 | method reflect.Method // callback |
| 42 | argTypes []reflect.Type // input argument types |
| 43 | hasCtx bool // method's first argument is a context (not included in argTypes) |
| 44 | errPos int // err return idx, of -1 when method cannot return error |
| 45 | isSubscribe bool // indication if the callback is a subscription |
| 46 | } |
| 47 | |
| 48 | // service represents a registered object |
| 49 | type service struct { |