move broker codec

This commit is contained in:
Asim Aslam
2016-12-06 18:59:41 +00:00
parent 49e5636bcd
commit 25a6849609
5 changed files with 24 additions and 22 deletions

View File

@@ -38,15 +38,6 @@ type Subscriber interface {
Unsubscribe() error
}
// 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
}
var (
DefaultBroker Broker = newHttpBroker()
)