micro-server-http/message.go

20 lines
302 B
Go
Raw Permalink Normal View History

2018-12-19 10:33:23 +03:00
package http
2018-12-19 12:47:03 +03:00
type httpMessage struct {
2018-12-19 10:33:23 +03:00
topic string
contentType string
payload interface{}
}
2018-12-19 12:47:03 +03:00
func (r *httpMessage) ContentType() string {
2018-12-19 10:33:23 +03:00
return r.contentType
}
2018-12-19 12:47:03 +03:00
func (r *httpMessage) Topic() string {
2018-12-19 10:33:23 +03:00
return r.topic
}
2018-12-19 12:47:03 +03:00
func (r *httpMessage) Payload() interface{} {
2018-12-19 10:33:23 +03:00
return r.payload
}