update codec interface

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-25 23:44:32 +03:00
parent 3fc7db17c3
commit 86061569b2
6 changed files with 14 additions and 70 deletions

View File

@@ -11,7 +11,7 @@ type httpMessage struct {
contentType string
header metadata.Metadata
body []byte
codec codec.Reader
codec codec.Codec
}
func (r *httpMessage) Topic() string {
@@ -34,6 +34,6 @@ func (r *httpMessage) Body() []byte {
return r.body
}
func (r *httpMessage) Codec() codec.Reader {
func (r *httpMessage) Codec() codec.Codec {
return r.codec
}