package server type rpcRequest struct { service string method string contentType string request interface{} stream bool } type rpcMessage struct { topic string contentType string payload interface{} } func (r *rpcRequest) ContentType() string { return r.contentType } func (r *rpcRequest) Service() string { return r.service } func (r *rpcRequest) Method() string { return r.method } func (r *rpcRequest) Request() interface{} { return r.request } func (r *rpcRequest) Stream() bool { return r.stream } func (r *rpcMessage) ContentType() string { return r.contentType } func (r *rpcMessage) Topic() string { return r.topic } func (r *rpcMessage) Payload() interface{} { return r.payload }