|
|
@ -101,6 +101,8 @@ func init() { |
|
|
|
type ProductService interface { |
|
|
|
Get(in *GetRequest, out *GetResponse) error |
|
|
|
GetByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
|
GetSku(in *GetRequest, out *GetResponse) error |
|
|
|
GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error |
|
|
|
} |
|
|
|
|
|
|
|
// AcceptProductServiceClient accepts connections on the listener and serves requests
|
|
|
@ -178,6 +180,12 @@ func (c *ProductServiceClient) Get(in *GetRequest, out *GetResponse) error { |
|
|
|
func (c *ProductServiceClient) GetByUuid(in *GetUuidRequest, out *GetResponse) error { |
|
|
|
return c.Call("ProductService.GetByUuid", in, out) |
|
|
|
} |
|
|
|
func (c *ProductServiceClient) GetSku(in *GetRequest, out *GetResponse) error { |
|
|
|
return c.Call("ProductService.GetSku", in, out) |
|
|
|
} |
|
|
|
func (c *ProductServiceClient) GetSkuByUuid(in *GetUuidRequest, out *GetResponse) error { |
|
|
|
return c.Call("ProductService.GetSkuByUuid", in, out) |
|
|
|
} |
|
|
|
|
|
|
|
// DialProductService connects to an ProductService at the specified network address.
|
|
|
|
func DialProductService(network, addr string) (*ProductServiceClient, *rpc.Client, error) { |
|
|
|