1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

remove codecs

This commit is contained in:
Asim Aslam
2019-01-10 09:42:02 +00:00
parent 6e0e4a684c
commit c086c33bb3
13 changed files with 93 additions and 148 deletions

View File

@ -38,6 +38,15 @@ type Writer interface {
Write(*Message, interface{}) error
}
// Marshaler is a simple encoding interface used for the broker/transport
// where headers are not supported by the underlying implementation.
type Marshaler interface {
Marshal(interface{}) ([]byte, error)
Unmarshal([]byte, interface{}) error
String() string
}
// Message represents detailed information about
// the communication, likely followed by the body.
// In the case of an error, body may be nil.