公告板
版本库
filestore
活动
搜索
登录
valib
/
bhomeclient
bhomebus的client端代码
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
MicroFunc添加Context参数
liuxiaolong
2021-04-02
a35153875f213929601a39c47f0823b310210321
[valib/bhomeclient.git]
/
requestTopic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
package bhomeclient
type Context struct {
Bk Broker
Tr Transport
}
type MicroFunc func(ctx *Context, req *Request) *Reply
type Transport interface {
RequestTopic(string, Request, int) (*Reply,error)
}