MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / sendResult

Method sendResult

pkg/lsp/server.go:402–409  ·  view source on GitHub ↗

sendResult sends a successful response

(id interface{}, result interface{})

Source from the content-addressed store, hash-verified

400
401// sendResult sends a successful response
402func (s *Server) sendResult(id interface{}, result interface{}) {
403 resp := Response{
404 JSONRPC: "2.0",
405 ID: id,
406 Result: result,
407 }
408 s.sendMessage(resp)
409}
410
411// sendError sends an error response
412func (s *Server) sendError(id interface{}, code int, message string) {

Callers 1

handleMessageMethod · 0.95

Calls 1

sendMessageMethod · 0.95

Tested by

no test coverage detected