http server supports subscriber

This commit is contained in:
武新飞
2018-12-19 15:33:23 +08:00
committed by Vasiliy Tolstov
parent 24f8e6b137
commit 3c3b81d9cd
5 changed files with 499 additions and 27 deletions

19
message.go Normal file
View File

@@ -0,0 +1,19 @@
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
}