You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jsonrpc2.go
+6-21Lines changed: 6 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ type Message struct {
21
21
JSONRPCstring`json:"jsonrpc"`
22
22
}
23
23
24
-
// Request is a request message to describe a request between the client and the server. Every processed request must send a response back to the sender of the request.
24
+
// Request is a request message to describe a request between the client and the server.
25
+
// Every processed request must send a response back to the sender of the request.
25
26
typeRequeststruct {
26
27
Message
27
28
@@ -35,7 +36,10 @@ type Request struct {
35
36
Params*json.RawMessage`json:"params,omitempty"`
36
37
}
37
38
38
-
// Response is a response ressage sent as a result of a request. If a request doesn't provide a result value the receiver of a request still needs to return a response message to conform to the JSON RPC specification. The result property of the ResponseMessage should be set to null in this case to signal a successful request.
39
+
// Response is a response ressage sent as a result of a request.
40
+
// If a request doesn't provide a result value the receiver of a request still needs to return a response message to
41
+
// conform to the JSON RPC specification.
42
+
// The result property of the ResponseMessage should be set to null in this case to signal a successful request.
39
43
typeResponsestruct {
40
44
Message
41
45
@@ -73,22 +77,3 @@ type NotificationMessage struct {
0 commit comments