|
@ -101,6 +101,7 @@ type SiteService interface { |
|
|
GetConfig(in *Request, out *Response) error |
|
|
GetConfig(in *Request, out *Response) error |
|
|
GetBalanceType(in *Request, out *Response) error |
|
|
GetBalanceType(in *Request, out *Response) error |
|
|
GetAllSite(in *Request, out *Response) error |
|
|
GetAllSite(in *Request, out *Response) error |
|
|
|
|
|
GetSiteInfoByHost(in *Request, out *Response) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptSiteServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptSiteServiceClient accepts connections on the listener and serves requests
|
|
@ -181,6 +182,9 @@ func (c *SiteServiceClient) GetBalanceType(in *Request, out *Response) error { |
|
|
func (c *SiteServiceClient) GetAllSite(in *Request, out *Response) error { |
|
|
func (c *SiteServiceClient) GetAllSite(in *Request, out *Response) error { |
|
|
return c.Call("SiteService.GetAllSite", in, out) |
|
|
return c.Call("SiteService.GetAllSite", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *SiteServiceClient) GetSiteInfoByHost(in *Request, out *Response) error { |
|
|
|
|
|
return c.Call("SiteService.GetSiteInfoByHost", 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) { |
|
|