mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-05 10:20:53 +02:00
11 lines
298 B
Go
11 lines
298 B
Go
package codec
|
|
|
|
// Codec is used for encoding where the broker doesn't natively support
|
|
// headers in the message type. In this case the entire message is
|
|
// encoded as the payload
|
|
type Codec interface {
|
|
Marshal(interface{}) ([]byte, error)
|
|
Unmarshal([]byte, interface{}) error
|
|
String() string
|
|
}
|