(id ID, code int, errorMsg string)
| 556 | } |
| 557 | |
| 558 | func (ss *stdioServer) sendSuccess(id ID, code int, data interface{}) { |
| 559 | response := jsonRpcResponse{ |
| 560 | JSONRPC: "2.0", |
| 561 | ID: id, |
| 562 | Result: &jsonResult{Value: data}, |
| 563 | } |
| 564 | ss.writeResponse(response) |
| 565 | } |
| 566 | |
| 567 | func (ss *stdioServer) sendError(id ID, code int, errorMsg string) { |
| 568 | response := jsonRpcResponse{ |
| 569 | JSONRPC: "2.0", |
| 570 | ID: id, |
| 571 | Error: &rpcError{ |
no test coverage detected