From a6b0215037bd21c04834f6ae1d6abf2077332318 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期五, 03 九月 2021 15:50:53 +0800 Subject: [PATCH] impl DeRegister --- requestTopic.go | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/requestTopic.go b/requestTopic.go index f370bbb..2ee903a 100644 --- a/requestTopic.go +++ b/requestTopic.go @@ -1,8 +1,13 @@ package bhomeclient -type MicroFunc func(req *Request) *Reply +type WrapperHandler struct { + Bk Broker + Tr Transport +} + +type MicroFunc func(h *WrapperHandler, req *Request) *Reply type Transport interface { - RequestTopic(string, Request) (*Reply,error) + RequestTopic(string, Request, int) (*Reply,error) } \ No newline at end of file -- Gitblit v1.8.0