|
@ -100,6 +100,7 @@ func init() { |
|
|
type SiteService interface { |
|
|
type SiteService interface { |
|
|
GetConfig(in *ConfigRequest, out *ConfigResponse) error |
|
|
GetConfig(in *ConfigRequest, out *ConfigResponse) error |
|
|
GetBalanceType(in *ConfigRequest, out *ConfigResponse) error |
|
|
GetBalanceType(in *ConfigRequest, out *ConfigResponse) error |
|
|
|
|
|
GetAllSite(in *ConfigRequest, out *ConfigResponse) error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// AcceptSiteServiceClient accepts connections on the listener and serves requests
|
|
|
// AcceptSiteServiceClient accepts connections on the listener and serves requests
|
|
@ -177,6 +178,9 @@ func (c *SiteServiceClient) GetConfig(in *ConfigRequest, out *ConfigResponse) er |
|
|
func (c *SiteServiceClient) GetBalanceType(in *ConfigRequest, out *ConfigResponse) error { |
|
|
func (c *SiteServiceClient) GetBalanceType(in *ConfigRequest, out *ConfigResponse) error { |
|
|
return c.Call("SiteService.GetBalanceType", in, out) |
|
|
return c.Call("SiteService.GetBalanceType", in, out) |
|
|
} |
|
|
} |
|
|
|
|
|
func (c *SiteServiceClient) GetAllSite(in *ConfigRequest, out *ConfigResponse) error { |
|
|
|
|
|
return c.Call("SiteService.GetAllSite", 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) { |
|
|