From a35153875f213929601a39c47f0823b310210321 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 02 四月 2021 10:37:11 +0800 Subject: [PATCH] MicroFunc添加Context参数 --- requestTopic.go | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/requestTopic.go b/requestTopic.go index a6abdac..f648a92 100644 --- a/requestTopic.go +++ b/requestTopic.go @@ -1,6 +1,11 @@ package bhomeclient -type MicroFunc func(req *Request) *Reply +type Context struct { + Bk Broker + Tr Transport +} + +type MicroFunc func(ctx *Context, req *Request) *Reply type Transport interface { -- Gitblit v1.8.0