productcatalogservice

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

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

Index

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

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

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

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 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 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

Jump to

Keyboard shortcuts

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