-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc.go
23 lines (21 loc) · 901 Bytes
/
rpc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package rpc
// Request is a header written before every RPC call. It is used internally
// but documented here as an aid to debugging, such as when analyzing
// network traffic.
type Request struct {
ServiceMethod string // format: "Service.Method"
ID string // RequestID
Header Header // Request headers
next *Request // for free list in Server
}
// Response is a header written before every RPC return. It is used internally
// but documented here as an aid to debugging, such as when analyzing
// network traffic.
type Response struct {
ServiceMethod string // echoes that of the Request
ID string // echoes that of the Request
Header Header // Response Headers
Error string // error, if any.
callErr error // error that won't get sent across the wire
next *Response // for free list in Server
}