(method reflect.Method)
| 27 | var wshRpcInterfaceRType = reflect.TypeOf((*WshRpcInterface)(nil)).Elem() |
| 28 | |
| 29 | func getWshCommandType(method reflect.Method) string { |
| 30 | if method.Type.NumOut() == 1 { |
| 31 | outType := method.Type.Out(0) |
| 32 | if outType.Kind() == reflect.Chan { |
| 33 | return RpcType_ResponseStream |
| 34 | } |
| 35 | } |
| 36 | return RpcType_Call |
| 37 | } |
| 38 | |
| 39 | func getWshMethodResponseType(commandType string, method reflect.Method) reflect.Type { |
| 40 | switch commandType { |
no outgoing calls
no test coverage detected