Documentation
¶
Overview ¶
Code generated by Kitex v0.12.1. DO NOT EDIT.
Index ¶
- func NewServer(handler commodity.CommodityService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler commodity.CommodityService, ...) error
- type Client
- type CommodityService_CreateSpuClient
- type CommodityService_CreateSpuImageClient
- type CommodityService_UpdateSpuClient
- type CommodityService_UpdateSpuImageClient
- type StreamClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶
func RegisterService(svr server.Server, handler commodity.CommodityService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface { CreateCoupon(ctx context.Context, req *commodity.CreateCouponReq, callOptions ...callopt.Option) (r *commodity.CreateCouponResp, err error) DeleteCoupon(ctx context.Context, req *commodity.DeleteCouponReq, callOptions ...callopt.Option) (r *commodity.DeleteCouponResp, err error) CreateUserCoupon(ctx context.Context, req *commodity.CreateCouponReq, callOptions ...callopt.Option) (r *commodity.CreateUserCouponResp, err error) ViewCoupon(ctx context.Context, req *commodity.ViewCouponReq, callOptions ...callopt.Option) (r *commodity.ViewCouponResp, err error) ViewUserAllCoupon(ctx context.Context, req *commodity.ViewCouponReq, callOptions ...callopt.Option) (r *commodity.ViewUserAllCouponResp, err error) UseUserCoupon(ctx context.Context, req *commodity.UseUserCouponReq, callOptions ...callopt.Option) (r *commodity.UseUserCouponResp, err error) ViewSpu(ctx context.Context, req *commodity.ViewSpuReq, callOptions ...callopt.Option) (r *commodity.ViewSpuResp, err error) DeleteSpu(ctx context.Context, req *commodity.DeleteSpuReq, callOptions ...callopt.Option) (r *commodity.DeleteSpuResp, err error) ViewSpuImage(ctx context.Context, req *commodity.ViewSpuImageReq, callOptions ...callopt.Option) (r *commodity.ViewSpuImageResp, err error) DeleteSpuImage(ctx context.Context, req *commodity.DeleteSpuImageReq, callOptions ...callopt.Option) (r *commodity.DeleteSpuImageResp, err error) CreateSku(ctx context.Context, req *commodity.CreateSkuReq, callOptions ...callopt.Option) (r *commodity.CreateSkuResp, err error) UpdateSku(ctx context.Context, req *commodity.UpdateSkuReq, callOptions ...callopt.Option) (r *commodity.UpdateSkuResp, err error) DeleteSku(ctx context.Context, req *commodity.DeleteSkuReq, callOptions ...callopt.Option) (r *commodity.DeleteSkuResp, err error) ViewSkuImage(ctx context.Context, req *commodity.ViewSkuImageReq, callOptions ...callopt.Option) (r *commodity.ViewSkuImageResp, err error) ViewSku(ctx context.Context, req *commodity.ViewSkuReq, callOptions ...callopt.Option) (r *commodity.ViewSkuResp, err error) UploadSkuAttr(ctx context.Context, req *commodity.UploadSkuAttrReq, callOptions ...callopt.Option) (r *commodity.UploadSkuAttrResp, err error) ListSkuInfo(ctx context.Context, req *commodity.ListSkuInfoReq, callOptions ...callopt.Option) (r *commodity.ListSkuInfoResp, err error) ViewHistory(ctx context.Context, req *commodity.ViewHistoryPriceReq, callOptions ...callopt.Option) (r *commodity.ViewHistoryPriceResp, err error) DescSkuLockStock(ctx context.Context, req *commodity.DescSkuLockStockReq, callOptions ...callopt.Option) (r *commodity.DescSkuLockStockResp, err error) IncrSkuLockStock(ctx context.Context, req *commodity.IncrSkuLockStockReq, callOptions ...callopt.Option) (r *commodity.IncrSkuLockStockResp, err error) DescSkuStock(ctx context.Context, req *commodity.DescSkuStockReq, callOptions ...callopt.Option) (r *commodity.DescSkuStockResp, err error) CreateCategory(ctx context.Context, req *commodity.CreateCategoryReq, callOptions ...callopt.Option) (r *commodity.CreateCategoryResp, err error) DeleteCategory(ctx context.Context, req *commodity.DeleteCategoryReq, callOptions ...callopt.Option) (r *commodity.DeleteCategoryResp, err error) ViewCategory(ctx context.Context, req *commodity.ViewCategoryReq, callOptions ...callopt.Option) (r *commodity.ViewCategoryResp, err error) UpdateCategory(ctx context.Context, req *commodity.UpdateCategoryReq, callOptions ...callopt.Option) (r *commodity.UpdateCategoryResp, err error) }
Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.
func MustNewClient ¶
MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
type CommodityService_CreateSpuClient ¶
type CommodityService_CreateSpuClient interface { streaming.Stream Send(*commodity.CreateSpuReq) error CloseAndRecv() (*commodity.CreateSpuResp, error) }
type CommodityService_CreateSpuImageClient ¶
type CommodityService_CreateSpuImageClient interface { streaming.Stream Send(*commodity.CreateSpuImageReq) error CloseAndRecv() (*commodity.CreateSpuImageResp, error) }
type CommodityService_UpdateSpuClient ¶
type CommodityService_UpdateSpuClient interface { streaming.Stream Send(*commodity.UpdateSpuReq) error CloseAndRecv() (*commodity.UpdateSpuResp, error) }
type CommodityService_UpdateSpuImageClient ¶
type CommodityService_UpdateSpuImageClient interface { streaming.Stream Send(*commodity.UpdateSpuImageReq) error CloseAndRecv() (*commodity.UpdateSpuImageResp, error) }
type StreamClient ¶
type StreamClient interface { CreateSpu(ctx context.Context, callOptions ...streamcall.Option) (stream CommodityService_CreateSpuClient, err error) UpdateSpu(ctx context.Context, callOptions ...streamcall.Option) (stream CommodityService_UpdateSpuClient, err error) CreateSpuImage(ctx context.Context, callOptions ...streamcall.Option) (stream CommodityService_CreateSpuImageClient, err error) UpdateSpuImage(ctx context.Context, callOptions ...streamcall.Option) (stream CommodityService_UpdateSpuImageClient, err error) }
StreamClient is designed to provide Interface for Streaming APIs.
func MustNewStreamClient ¶
func MustNewStreamClient(destService string, opts ...streamclient.Option) StreamClient
MustNewStreamClient creates a stream client for the service's streaming APIs defined in IDL. It panics if any error occurs.
func NewStreamClient ¶
func NewStreamClient(destService string, opts ...streamclient.Option) (StreamClient, error)
NewStreamClient creates a stream client for the service's streaming APIs defined in IDL.