productcatalogservice

package
v0.0.0-...-7014cc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Kitex v0.9.1. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var CreateProductArgs_Req_DEFAULT *product.CreateProductReq
View Source
var CreateProductResult_Success_DEFAULT *product.CreateProductResp
View Source
var DeleteProductArgs_Req_DEFAULT *product.DeleteProductReq
View Source
var DeleteProductResult_Success_DEFAULT *product.DeleteProductResp
View Source
var GetProductArgs_Req_DEFAULT *product.GetProductReq
View Source
var GetProductResult_Success_DEFAULT *product.GetProductResp
View Source
var GetProductsBatchArgs_Req_DEFAULT *product.GetProductsBatchReq
View Source
var GetProductsBatchResult_Success_DEFAULT *product.GetProductsBatchResp
View Source
var ListProductsArgs_Req_DEFAULT *product.ListProductsReq
View Source
var ListProductsResult_Success_DEFAULT *product.ListProductsResp
View Source
var SearchProductsArgs_Req_DEFAULT *product.SearchProductsReq
View Source
var SearchProductsResult_Success_DEFAULT *product.SearchProductsResp
View Source
var UpdateProductArgs_Req_DEFAULT *product.UpdateProductReq
View Source
var UpdateProductResult_Success_DEFAULT *product.UpdateProductResp

Functions

func NewInvoker

func NewInvoker(handler product.ProductCatalogService, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler product.ProductCatalogService, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

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 product.ProductCatalogService, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	ListProducts(ctx context.Context, Req *product.ListProductsReq, callOptions ...callopt.Option) (r *product.ListProductsResp, err error)
	SearchProducts(ctx context.Context, Req *product.SearchProductsReq, callOptions ...callopt.Option) (r *product.SearchProductsResp, err error)
	CreateProduct(ctx context.Context, Req *product.CreateProductReq, callOptions ...callopt.Option) (r *product.CreateProductResp, err error)
	UpdateProduct(ctx context.Context, Req *product.UpdateProductReq, callOptions ...callopt.Option) (r *product.UpdateProductResp, err error)
	DeleteProduct(ctx context.Context, Req *product.DeleteProductReq, callOptions ...callopt.Option) (r *product.DeleteProductResp, err error)
	GetProduct(ctx context.Context, Req *product.GetProductReq, callOptions ...callopt.Option) (r *product.GetProductResp, err error)
	GetProductsBatch(ctx context.Context, Req *product.GetProductsBatchReq, callOptions ...callopt.Option) (r *product.GetProductsBatchResp, err error)
}

Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.

func MustNewClient

func MustNewClient(destService string, opts ...client.Option) Client

MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.

func NewClient

func NewClient(destService string, opts ...client.Option) (Client, error)

NewClient creates a client for the service defined in IDL.

type CreateProductArgs

type CreateProductArgs struct {
	Req *product.CreateProductReq
}

func (*CreateProductArgs) FastRead

func (p *CreateProductArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*CreateProductArgs) FastWrite

func (p *CreateProductArgs) FastWrite(buf []byte) (n int)

func (*CreateProductArgs) GetFirstArgument

func (p *CreateProductArgs) GetFirstArgument() interface{}

func (*CreateProductArgs) GetReq

func (*CreateProductArgs) IsSetReq

func (p *CreateProductArgs) IsSetReq() bool

func (*CreateProductArgs) Marshal

func (p *CreateProductArgs) Marshal(out []byte) ([]byte, error)

func (*CreateProductArgs) Size

func (p *CreateProductArgs) Size() (n int)

func (*CreateProductArgs) Unmarshal

func (p *CreateProductArgs) Unmarshal(in []byte) error

type CreateProductResult

type CreateProductResult struct {
	Success *product.CreateProductResp
}

func (*CreateProductResult) FastRead

func (p *CreateProductResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*CreateProductResult) FastWrite

func (p *CreateProductResult) FastWrite(buf []byte) (n int)

func (*CreateProductResult) GetResult

func (p *CreateProductResult) GetResult() interface{}

func (*CreateProductResult) GetSuccess

func (*CreateProductResult) IsSetSuccess

func (p *CreateProductResult) IsSetSuccess() bool

func (*CreateProductResult) Marshal

func (p *CreateProductResult) Marshal(out []byte) ([]byte, error)

func (*CreateProductResult) SetSuccess

func (p *CreateProductResult) SetSuccess(x interface{})

func (*CreateProductResult) Size

func (p *CreateProductResult) Size() (n int)

func (*CreateProductResult) Unmarshal

func (p *CreateProductResult) Unmarshal(in []byte) error

type DeleteProductArgs

type DeleteProductArgs struct {
	Req *product.DeleteProductReq
}

func (*DeleteProductArgs) FastRead

func (p *DeleteProductArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*DeleteProductArgs) FastWrite

func (p *DeleteProductArgs) FastWrite(buf []byte) (n int)

func (*DeleteProductArgs) GetFirstArgument

func (p *DeleteProductArgs) GetFirstArgument() interface{}

func (*DeleteProductArgs) GetReq

func (*DeleteProductArgs) IsSetReq

func (p *DeleteProductArgs) IsSetReq() bool

func (*DeleteProductArgs) Marshal

func (p *DeleteProductArgs) Marshal(out []byte) ([]byte, error)

func (*DeleteProductArgs) Size

func (p *DeleteProductArgs) Size() (n int)

func (*DeleteProductArgs) Unmarshal

func (p *DeleteProductArgs) Unmarshal(in []byte) error

type DeleteProductResult

type DeleteProductResult struct {
	Success *product.DeleteProductResp
}

func (*DeleteProductResult) FastRead

func (p *DeleteProductResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*DeleteProductResult) FastWrite

func (p *DeleteProductResult) FastWrite(buf []byte) (n int)

func (*DeleteProductResult) GetResult

func (p *DeleteProductResult) GetResult() interface{}

func (*DeleteProductResult) GetSuccess

func (*DeleteProductResult) IsSetSuccess

func (p *DeleteProductResult) IsSetSuccess() bool

func (*DeleteProductResult) Marshal

func (p *DeleteProductResult) Marshal(out []byte) ([]byte, error)

func (*DeleteProductResult) SetSuccess

func (p *DeleteProductResult) SetSuccess(x interface{})

func (*DeleteProductResult) Size

func (p *DeleteProductResult) Size() (n int)

func (*DeleteProductResult) Unmarshal

func (p *DeleteProductResult) Unmarshal(in []byte) error

type GetProductArgs

type GetProductArgs struct {
	Req *product.GetProductReq
}

func (*GetProductArgs) FastRead

func (p *GetProductArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetProductArgs) FastWrite

func (p *GetProductArgs) FastWrite(buf []byte) (n int)

func (*GetProductArgs) GetFirstArgument

func (p *GetProductArgs) GetFirstArgument() interface{}

func (*GetProductArgs) GetReq

func (p *GetProductArgs) GetReq() *product.GetProductReq

func (*GetProductArgs) IsSetReq

func (p *GetProductArgs) IsSetReq() bool

func (*GetProductArgs) Marshal

func (p *GetProductArgs) Marshal(out []byte) ([]byte, error)

func (*GetProductArgs) Size

func (p *GetProductArgs) Size() (n int)

func (*GetProductArgs) Unmarshal

func (p *GetProductArgs) Unmarshal(in []byte) error

type GetProductResult

type GetProductResult struct {
	Success *product.GetProductResp
}

func (*GetProductResult) FastRead

func (p *GetProductResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetProductResult) FastWrite

func (p *GetProductResult) FastWrite(buf []byte) (n int)

func (*GetProductResult) GetResult

func (p *GetProductResult) GetResult() interface{}

func (*GetProductResult) GetSuccess

func (p *GetProductResult) GetSuccess() *product.GetProductResp

func (*GetProductResult) IsSetSuccess

func (p *GetProductResult) IsSetSuccess() bool

func (*GetProductResult) Marshal

func (p *GetProductResult) Marshal(out []byte) ([]byte, error)

func (*GetProductResult) SetSuccess

func (p *GetProductResult) SetSuccess(x interface{})

func (*GetProductResult) Size

func (p *GetProductResult) Size() (n int)

func (*GetProductResult) Unmarshal

func (p *GetProductResult) Unmarshal(in []byte) error

type GetProductsBatchArgs

type GetProductsBatchArgs struct {
	Req *product.GetProductsBatchReq
}

func (*GetProductsBatchArgs) FastRead

func (p *GetProductsBatchArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetProductsBatchArgs) FastWrite

func (p *GetProductsBatchArgs) FastWrite(buf []byte) (n int)

func (*GetProductsBatchArgs) GetFirstArgument

func (p *GetProductsBatchArgs) GetFirstArgument() interface{}

func (*GetProductsBatchArgs) GetReq

func (*GetProductsBatchArgs) IsSetReq

func (p *GetProductsBatchArgs) IsSetReq() bool

func (*GetProductsBatchArgs) Marshal

func (p *GetProductsBatchArgs) Marshal(out []byte) ([]byte, error)

func (*GetProductsBatchArgs) Size

func (p *GetProductsBatchArgs) Size() (n int)

func (*GetProductsBatchArgs) Unmarshal

func (p *GetProductsBatchArgs) Unmarshal(in []byte) error

type GetProductsBatchResult

type GetProductsBatchResult struct {
	Success *product.GetProductsBatchResp
}

func (*GetProductsBatchResult) FastRead

func (p *GetProductsBatchResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetProductsBatchResult) FastWrite

func (p *GetProductsBatchResult) FastWrite(buf []byte) (n int)

func (*GetProductsBatchResult) GetResult

func (p *GetProductsBatchResult) GetResult() interface{}

func (*GetProductsBatchResult) GetSuccess

func (*GetProductsBatchResult) IsSetSuccess

func (p *GetProductsBatchResult) IsSetSuccess() bool

func (*GetProductsBatchResult) Marshal

func (p *GetProductsBatchResult) Marshal(out []byte) ([]byte, error)

func (*GetProductsBatchResult) SetSuccess

func (p *GetProductsBatchResult) SetSuccess(x interface{})

func (*GetProductsBatchResult) Size

func (p *GetProductsBatchResult) Size() (n int)

func (*GetProductsBatchResult) Unmarshal

func (p *GetProductsBatchResult) Unmarshal(in []byte) error

type ListProductsArgs

type ListProductsArgs struct {
	Req *product.ListProductsReq
}

func (*ListProductsArgs) FastRead

func (p *ListProductsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*ListProductsArgs) FastWrite

func (p *ListProductsArgs) FastWrite(buf []byte) (n int)

func (*ListProductsArgs) GetFirstArgument

func (p *ListProductsArgs) GetFirstArgument() interface{}

func (*ListProductsArgs) GetReq

func (*ListProductsArgs) IsSetReq

func (p *ListProductsArgs) IsSetReq() bool

func (*ListProductsArgs) Marshal

func (p *ListProductsArgs) Marshal(out []byte) ([]byte, error)

func (*ListProductsArgs) Size

func (p *ListProductsArgs) Size() (n int)

func (*ListProductsArgs) Unmarshal

func (p *ListProductsArgs) Unmarshal(in []byte) error

type ListProductsResult

type ListProductsResult struct {
	Success *product.ListProductsResp
}

func (*ListProductsResult) FastRead

func (p *ListProductsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*ListProductsResult) FastWrite

func (p *ListProductsResult) FastWrite(buf []byte) (n int)

func (*ListProductsResult) GetResult

func (p *ListProductsResult) GetResult() interface{}

func (*ListProductsResult) GetSuccess

func (p *ListProductsResult) GetSuccess() *product.ListProductsResp

func (*ListProductsResult) IsSetSuccess

func (p *ListProductsResult) IsSetSuccess() bool

func (*ListProductsResult) Marshal

func (p *ListProductsResult) Marshal(out []byte) ([]byte, error)

func (*ListProductsResult) SetSuccess

func (p *ListProductsResult) SetSuccess(x interface{})

func (*ListProductsResult) Size

func (p *ListProductsResult) Size() (n int)

func (*ListProductsResult) Unmarshal

func (p *ListProductsResult) Unmarshal(in []byte) error

type SearchProductsArgs

type SearchProductsArgs struct {
	Req *product.SearchProductsReq
}

func (*SearchProductsArgs) FastRead

func (p *SearchProductsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SearchProductsArgs) FastWrite

func (p *SearchProductsArgs) FastWrite(buf []byte) (n int)

func (*SearchProductsArgs) GetFirstArgument

func (p *SearchProductsArgs) GetFirstArgument() interface{}

func (*SearchProductsArgs) GetReq

func (*SearchProductsArgs) IsSetReq

func (p *SearchProductsArgs) IsSetReq() bool

func (*SearchProductsArgs) Marshal

func (p *SearchProductsArgs) Marshal(out []byte) ([]byte, error)

func (*SearchProductsArgs) Size

func (p *SearchProductsArgs) Size() (n int)

func (*SearchProductsArgs) Unmarshal

func (p *SearchProductsArgs) Unmarshal(in []byte) error

type SearchProductsResult

type SearchProductsResult struct {
	Success *product.SearchProductsResp
}

func (*SearchProductsResult) FastRead

func (p *SearchProductsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SearchProductsResult) FastWrite

func (p *SearchProductsResult) FastWrite(buf []byte) (n int)

func (*SearchProductsResult) GetResult

func (p *SearchProductsResult) GetResult() interface{}

func (*SearchProductsResult) GetSuccess

func (*SearchProductsResult) IsSetSuccess

func (p *SearchProductsResult) IsSetSuccess() bool

func (*SearchProductsResult) Marshal

func (p *SearchProductsResult) Marshal(out []byte) ([]byte, error)

func (*SearchProductsResult) SetSuccess

func (p *SearchProductsResult) SetSuccess(x interface{})

func (*SearchProductsResult) Size

func (p *SearchProductsResult) Size() (n int)

func (*SearchProductsResult) Unmarshal

func (p *SearchProductsResult) Unmarshal(in []byte) error

type UpdateProductArgs

type UpdateProductArgs struct {
	Req *product.UpdateProductReq
}

func (*UpdateProductArgs) FastRead

func (p *UpdateProductArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*UpdateProductArgs) FastWrite

func (p *UpdateProductArgs) FastWrite(buf []byte) (n int)

func (*UpdateProductArgs) GetFirstArgument

func (p *UpdateProductArgs) GetFirstArgument() interface{}

func (*UpdateProductArgs) GetReq

func (*UpdateProductArgs) IsSetReq

func (p *UpdateProductArgs) IsSetReq() bool

func (*UpdateProductArgs) Marshal

func (p *UpdateProductArgs) Marshal(out []byte) ([]byte, error)

func (*UpdateProductArgs) Size

func (p *UpdateProductArgs) Size() (n int)

func (*UpdateProductArgs) Unmarshal

func (p *UpdateProductArgs) Unmarshal(in []byte) error

type UpdateProductResult

type UpdateProductResult struct {
	Success *product.UpdateProductResp
}

func (*UpdateProductResult) FastRead

func (p *UpdateProductResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*UpdateProductResult) FastWrite

func (p *UpdateProductResult) FastWrite(buf []byte) (n int)

func (*UpdateProductResult) GetResult

func (p *UpdateProductResult) GetResult() interface{}

func (*UpdateProductResult) GetSuccess

func (*UpdateProductResult) IsSetSuccess

func (p *UpdateProductResult) IsSetSuccess() bool

func (*UpdateProductResult) Marshal

func (p *UpdateProductResult) Marshal(out []byte) ([]byte, error)

func (*UpdateProductResult) SetSuccess

func (p *UpdateProductResult) SetSuccess(x interface{})

func (*UpdateProductResult) Size

func (p *UpdateProductResult) Size() (n int)

func (*UpdateProductResult) Unmarshal

func (p *UpdateProductResult) Unmarshal(in []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL