Browse Source

增加获取所有配置方法

master
guzeng 3 years ago
parent
commit
99b11fc452
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

@ -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) {


+ 1
- 0
site.proto View File

@ -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); //
}

Loading…
Cancel
Save