Error wraps RPC errors, which contain an error code in addition to the message.
| 88 | |
| 89 | // Error wraps RPC errors, which contain an error code in addition to the message. |
| 90 | type Error interface { |
| 91 | Error() string // returns the message |
| 92 | ErrorCode() int // returns the code |
| 93 | } |
| 94 | |
| 95 | // ServerCodec implements reading, parsing and writing RPC messages for the server side of |
| 96 | // a RPC session. Implementations must be go-routine safe since the codec can be called in |
no outgoing calls
no test coverage detected