编码包
| 2 | |
| 3 | // 编码包 |
| 4 | type Codec interface { |
| 5 | // 将数据转换为字节数组 |
| 6 | Encode(msgObj interface{}, ctx ContextSet) (data interface{}, err error) |
| 7 | |
| 8 | // 将字节数组转换为数据 |
| 9 | Decode(data interface{}, msgObj interface{}) error |
| 10 | |
| 11 | // 编码器的名字 |
| 12 | Name() string |
| 13 | |
| 14 | // 兼容http类型 |
| 15 | MimeType() string |
| 16 | } |
no outgoing calls
no test coverage detected