use own fork

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-10-10 00:38:35 +03:00
parent 7b78210ef5
commit 0f38ece000
10 changed files with 270 additions and 630 deletions

View File

@@ -1,13 +1,14 @@
package http
import "github.com/unistack-org/micro/v3/codec"
type httpMessage struct {
topic string
contentType string
payload interface{}
}
func (r *httpMessage) ContentType() string {
return r.contentType
contentType string
header map[string]string
body []byte
codec codec.Reader
}
func (r *httpMessage) Topic() string {
@@ -17,3 +18,19 @@ func (r *httpMessage) Topic() string {
func (r *httpMessage) Payload() interface{} {
return r.payload
}
func (r *httpMessage) ContentType() string {
return r.contentType
}
func (r *httpMessage) Header() map[string]string {
return r.header
}
func (r *httpMessage) Body() []byte {
return r.body
}
func (r *httpMessage) Codec() codec.Reader {
return r.codec
}