From 99b11fc452f9cfb8beada29fefe0f3817317d6ff Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 4 Sep 2021 16:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8E=B7=E5=8F=96=E6=89=80?= =?UTF-8?q?=E6=9C=89=E9=85=8D=E7=BD=AE=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site.pb.go | 4 ++++ site.proto | 1 + 2 files changed, 5 insertions(+) diff --git a/site.pb.go b/site.pb.go index e8b7510..95b27b6 100644 --- a/site.pb.go +++ b/site.pb.go @@ -102,6 +102,7 @@ type SiteService interface { GetBalanceType(in *Request, out *Response) error GetAllSite(in *Request, out *Response) error GetSiteInfoByHost(in *Request, out *Response) error + GetAllConfig(in *Request, out *Response) error } // AcceptSiteServiceClient accepts connections on the listener and serves requests @@ -185,6 +186,9 @@ func (c *SiteServiceClient) GetAllSite(in *Request, out *Response) error { func (c *SiteServiceClient) GetSiteInfoByHost(in *Request, out *Response) error { return c.Call("SiteService.GetSiteInfoByHost", in, out) } +func (c *SiteServiceClient) GetAllConfig(in *Request, out *Response) error { + return c.Call("SiteService.GetAllConfig", in, out) +} // DialSiteService connects to an SiteService at the specified network address. func DialSiteService(network, addr string) (*SiteServiceClient, *rpc.Client, error) { diff --git a/site.proto b/site.proto index a260d0f..f99e58a 100644 --- a/site.proto +++ b/site.proto @@ -22,4 +22,5 @@ service SiteService { rpc getBalanceType (Request) returns (Response); // 查询账户类型信息 rpc getAllSite(Request) returns (Response);//缓存的所有站点 rpc getSiteInfoByHost(Request) returns (Response);//根据host获取站点关键信息 + rpc getAllConfig (Request) returns (Response); // 查询所有配置信息 } \ No newline at end of file