Browse Source

增加获取分级配置方法

master v0.7.0
guzeng 3 years ago
parent
commit
ad012e9e04
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      site.pb.go
  2. +1
    -0
      site.proto

+ 4
- 0
site.pb.go View File

@ -103,6 +103,7 @@ type SiteService interface {
GetAllSite(in *Request, out *Response) error GetAllSite(in *Request, out *Response) error
GetSiteInfoByHost(in *Request, out *Response) error GetSiteInfoByHost(in *Request, out *Response) error
GetAllConfig(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 // 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 { func (c *SiteServiceClient) GetAllConfig(in *Request, out *Response) error {
return c.Call("SiteService.GetAllConfig", in, out) 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. // DialSiteService connects to an SiteService at the specified network address.
func DialSiteService(network, addr string) (*SiteServiceClient, *rpc.Client, error) { func DialSiteService(network, addr string) (*SiteServiceClient, *rpc.Client, error) {


+ 1
- 0
site.proto View File

@ -23,4 +23,5 @@ service SiteService {
rpc getAllSite(Request) returns (Response);// rpc getAllSite(Request) returns (Response);//
rpc getSiteInfoByHost(Request) returns (Response);//host获取站点关键信息 rpc getSiteInfoByHost(Request) returns (Response);//host获取站点关键信息
rpc getAllConfig (Request) returns (Response); // rpc getAllConfig (Request) returns (Response); //
rpc getGroupConfig (Request) returns (Response); //
} }

Loading…
Cancel
Save