micro-server-http/message.go
2020-10-09 18:12:47 +03:00

20 lines
302 B
Go

package http
type httpMessage struct {
topic string
contentType string
payload interface{}
}
func (r *httpMessage) ContentType() string {
return r.contentType
}
func (r *httpMessage) Topic() string {
return r.topic
}
func (r *httpMessage) Payload() interface{} {
return r.payload
}