micro-server-http/message.go

20 lines
298 B
Go
Raw Normal View History

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