20 lines
298 B
Go
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
|
||
|
}
|