1 Star 0 Fork 0

yangsnr/go-micro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rpc_request.go 743 Bytes
一键复制 编辑 原始数据 按行查看 历史
Asim Aslam 提交于 2018-04-14 18:21 . Move publication to message
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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eyimi/go-micro.git
git@gitee.com:eyimi/go-micro.git
eyimi
go-micro
go-micro
v0.14.0

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385