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

20 lines
298 B
Go

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
}