diff --git a/site.pb.go b/site.pb.go index 95b27b6..f3e00e0 100644 --- a/site.pb.go +++ b/site.pb.go @@ -103,6 +103,7 @@ type SiteService interface { GetAllSite(in *Request, out *Response) error GetSiteInfoByHost(in *Request, out *Response) error GetAllConfig(in *Request, out *Response) error + GetGroupConfig(in *Request, out *Response) error } // AcceptSiteServiceClient accepts connections on the listener and serves requests @@ -189,6 +190,9 @@ func (c *SiteServiceClient) GetSiteInfoByHost(in *Request, out *Response) error func (c *SiteServiceClient) GetAllConfig(in *Request, out *Response) error { return c.Call("SiteService.GetAllConfig", in, out) } +func (c *SiteServiceClient) GetGroupConfig(in *Request, out *Response) error { + return c.Call("SiteService.GetGroupConfig", 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 f99e58a..50424cb 100644 --- a/site.proto +++ b/site.proto @@ -23,4 +23,5 @@ service SiteService { rpc getAllSite(Request) returns (Response);//缓存的所有站点 rpc getSiteInfoByHost(Request) returns (Response);//根据host获取站点关键信息 rpc getAllConfig (Request) returns (Response); // 查询所有配置信息 + rpc getGroupConfig (Request) returns (Response); // 查询分组下所有配置信息 } \ No newline at end of file