Codec encodes/decodes various types of messages used within go-micro. ReadHeader and ReadBody are called in pairs to read requests/responses from the connection. Close is called when finished with the connection. ReadBody may be called with a nil argument to force the body to be read and discarded.
| 28 | // connection. ReadBody may be called with a nil argument to force the |
| 29 | // body to be read and discarded. |
| 30 | type Codec interface { |
| 31 | Reader |
| 32 | Writer |
| 33 | Close() error |
| 34 | String() string |
| 35 | } |
| 36 | |
| 37 | type Reader interface { |
| 38 | ReadHeader(*Message, MessageType) error |
no outgoing calls
no test coverage detected
searching dependent graphs…