Documentation
¶
Index ¶
- func GetProduct(ctx context.Context, req *product.GetProductReq, callOptions ...callopt.Option) (resp *product.GetProductResp, err error)
- func InitClient(dstService string, opts ...client.Option)
- func ListProducts(ctx context.Context, req *product.ListProductsReq, ...) (resp *product.ListProductsResp, err error)
- func SearchProducts(ctx context.Context, req *product.SearchProductsReq, ...) (resp *product.SearchProductsResp, err error)
- type RPCClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProduct ¶
func GetProduct(ctx context.Context, req *product.GetProductReq, callOptions ...callopt.Option) (resp *product.GetProductResp, err error)
func ListProducts ¶
func ListProducts(ctx context.Context, req *product.ListProductsReq, callOptions ...callopt.Option) (resp *product.ListProductsResp, err error)
func SearchProducts ¶
func SearchProducts(ctx context.Context, req *product.SearchProductsReq, callOptions ...callopt.Option) (resp *product.SearchProductsResp, err error)
Types ¶
type RPCClient ¶
type RPCClient interface { KitexClient() productcatalogservice.Client Service() string ListProducts(ctx context.Context, Req *product.ListProductsReq, callOptions ...callopt.Option) (r *product.ListProductsResp, err error) GetProduct(ctx context.Context, Req *product.GetProductReq, callOptions ...callopt.Option) (r *product.GetProductResp, err error) SearchProducts(ctx context.Context, Req *product.SearchProductsReq, callOptions ...callopt.Option) (r *product.SearchProductsResp, err error) }
Click to show internal directories.
Click to hide internal directories.