Documentation ¶
Overview ¶
Code generated by Kitex v0.8.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler product.ProductCatalogService, opts ...server.Option) server.Invoker
- func NewServer(handler product.ProductCatalogService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type GetProductArgs
- func (p *GetProductArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetProductArgs) FastWrite(buf []byte) (n int)
- func (p *GetProductArgs) GetFirstArgument() interface{}
- func (p *GetProductArgs) GetReq() *product.GetProductReq
- func (p *GetProductArgs) IsSetReq() bool
- func (p *GetProductArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetProductArgs) Size() (n int)
- func (p *GetProductArgs) Unmarshal(in []byte) error
- type GetProductResult
- func (p *GetProductResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetProductResult) FastWrite(buf []byte) (n int)
- func (p *GetProductResult) GetResult() interface{}
- func (p *GetProductResult) GetSuccess() *product.GetProductResp
- func (p *GetProductResult) IsSetSuccess() bool
- func (p *GetProductResult) Marshal(out []byte) ([]byte, error)
- func (p *GetProductResult) SetSuccess(x interface{})
- func (p *GetProductResult) Size() (n int)
- func (p *GetProductResult) Unmarshal(in []byte) error
- type ListProductsArgs
- func (p *ListProductsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListProductsArgs) FastWrite(buf []byte) (n int)
- func (p *ListProductsArgs) GetFirstArgument() interface{}
- func (p *ListProductsArgs) GetReq() *product.ListProductsReq
- func (p *ListProductsArgs) IsSetReq() bool
- func (p *ListProductsArgs) Marshal(out []byte) ([]byte, error)
- func (p *ListProductsArgs) Size() (n int)
- func (p *ListProductsArgs) Unmarshal(in []byte) error
- type ListProductsResult
- func (p *ListProductsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListProductsResult) FastWrite(buf []byte) (n int)
- func (p *ListProductsResult) GetResult() interface{}
- func (p *ListProductsResult) GetSuccess() *product.ListProductsResp
- func (p *ListProductsResult) IsSetSuccess() bool
- func (p *ListProductsResult) Marshal(out []byte) ([]byte, error)
- func (p *ListProductsResult) SetSuccess(x interface{})
- func (p *ListProductsResult) Size() (n int)
- func (p *ListProductsResult) Unmarshal(in []byte) error
- type SearchProductsArgs
- func (p *SearchProductsArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchProductsArgs) FastWrite(buf []byte) (n int)
- func (p *SearchProductsArgs) GetFirstArgument() interface{}
- func (p *SearchProductsArgs) GetReq() *product.SearchProductsReq
- func (p *SearchProductsArgs) IsSetReq() bool
- func (p *SearchProductsArgs) Marshal(out []byte) ([]byte, error)
- func (p *SearchProductsArgs) Size() (n int)
- func (p *SearchProductsArgs) Unmarshal(in []byte) error
- type SearchProductsResult
- func (p *SearchProductsResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchProductsResult) FastWrite(buf []byte) (n int)
- func (p *SearchProductsResult) GetResult() interface{}
- func (p *SearchProductsResult) GetSuccess() *product.SearchProductsResp
- func (p *SearchProductsResult) IsSetSuccess() bool
- func (p *SearchProductsResult) Marshal(out []byte) ([]byte, error)
- func (p *SearchProductsResult) SetSuccess(x interface{})
- func (p *SearchProductsResult) Size() (n int)
- func (p *SearchProductsResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GetProductArgs_Req_DEFAULT *product.GetProductReq
View Source
var GetProductResult_Success_DEFAULT *product.GetProductResp
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
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface { 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) }
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 GetProductArgs ¶
type GetProductArgs struct {
Req *product.GetProductReq
}
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) 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) 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) 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 ListProductsArgs ¶
type ListProductsArgs struct {
Req *product.ListProductsReq
}
func (*ListProductsArgs) FastWrite ¶
func (p *ListProductsArgs) FastWrite(buf []byte) (n int)
func (*ListProductsArgs) GetFirstArgument ¶
func (p *ListProductsArgs) GetFirstArgument() interface{}
func (*ListProductsArgs) GetReq ¶
func (p *ListProductsArgs) GetReq() *product.ListProductsReq
func (*ListProductsArgs) IsSetReq ¶
func (p *ListProductsArgs) IsSetReq() bool
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) 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) FastWrite ¶
func (p *SearchProductsArgs) FastWrite(buf []byte) (n int)
func (*SearchProductsArgs) GetFirstArgument ¶
func (p *SearchProductsArgs) GetFirstArgument() interface{}
func (*SearchProductsArgs) GetReq ¶
func (p *SearchProductsArgs) GetReq() *product.SearchProductsReq
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) FastWrite ¶
func (p *SearchProductsResult) FastWrite(buf []byte) (n int)
func (*SearchProductsResult) GetResult ¶
func (p *SearchProductsResult) GetResult() interface{}
func (*SearchProductsResult) GetSuccess ¶
func (p *SearchProductsResult) GetSuccess() *product.SearchProductsResp
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
Click to show internal directories.
Click to hide internal directories.