From f59a734a7e151ae2cba0a6c9343912b69195fd1a Mon Sep 17 00:00:00 2001 From: what Date: Mon, 22 May 2023 15:38:25 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E6=96=B0=E5=A2=9EgRPC=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service.go b/service.go index a7e19db..6aa1dc5 100644 --- a/service.go +++ b/service.go @@ -4,6 +4,8 @@ type Service interface { LoadGoPlugin(file string) error RegControllers(items map[string]Controller) error RegListens(items map[string]ResListener) error + RegGRpControllers(items map[string]GRpController) error GetResListener(code string) (ResListener, bool) GetAppController(code string) (Controller, bool) + GetGRpController(code string) (GRpController, bool) }