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

@@ -3,7 +3,7 @@ package json
import (
"encoding/json"
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/broker/codec"
)
type jsonCodec struct{}
@@ -20,6 +20,6 @@ func (j jsonCodec) String() string {
return "json"
}
func NewCodec() broker.Codec {
func NewCodec() codec.Codec {
return jsonCodec{}
}