product

package
v0.0.0-...-aeb4011 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rpc_product_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetProductReq

type GetProductReq struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProductReq) Descriptor deprecated

func (*GetProductReq) Descriptor() ([]byte, []int)

Deprecated: Use GetProductReq.ProtoReflect.Descriptor instead.

func (*GetProductReq) FastRead

func (x *GetProductReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetProductReq) FastWrite

func (x *GetProductReq) FastWrite(buf []byte) (offset int)

func (*GetProductReq) GetId

func (x *GetProductReq) GetId() uint32

func (*GetProductReq) ProtoMessage

func (*GetProductReq) ProtoMessage()

func (*GetProductReq) ProtoReflect

func (x *GetProductReq) ProtoReflect() protoreflect.Message

func (*GetProductReq) Reset

func (x *GetProductReq) Reset()

func (*GetProductReq) Size

func (x *GetProductReq) Size() (n int)

func (*GetProductReq) String

func (x *GetProductReq) String() string

type GetProductResp

type GetProductResp struct {
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProductResp) Descriptor deprecated

func (*GetProductResp) Descriptor() ([]byte, []int)

Deprecated: Use GetProductResp.ProtoReflect.Descriptor instead.

func (*GetProductResp) FastRead

func (x *GetProductResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetProductResp) FastWrite

func (x *GetProductResp) FastWrite(buf []byte) (offset int)

func (*GetProductResp) GetProduct

func (x *GetProductResp) GetProduct() *Product

func (*GetProductResp) ProtoMessage

func (*GetProductResp) ProtoMessage()

func (*GetProductResp) ProtoReflect

func (x *GetProductResp) ProtoReflect() protoreflect.Message

func (*GetProductResp) Reset

func (x *GetProductResp) Reset()

func (*GetProductResp) Size

func (x *GetProductResp) Size() (n int)

func (*GetProductResp) String

func (x *GetProductResp) String() string

type ListProductsReq

type ListProductsReq struct {
	Page         int32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize     int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	CategoryName string `protobuf:"bytes,3,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProductsReq) Descriptor deprecated

func (*ListProductsReq) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsReq.ProtoReflect.Descriptor instead.

func (*ListProductsReq) FastRead

func (x *ListProductsReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ListProductsReq) FastWrite

func (x *ListProductsReq) FastWrite(buf []byte) (offset int)

func (*ListProductsReq) GetCategoryName

func (x *ListProductsReq) GetCategoryName() string

func (*ListProductsReq) GetPage

func (x *ListProductsReq) GetPage() int32

func (*ListProductsReq) GetPageSize

func (x *ListProductsReq) GetPageSize() int32

func (*ListProductsReq) ProtoMessage

func (*ListProductsReq) ProtoMessage()

func (*ListProductsReq) ProtoReflect

func (x *ListProductsReq) ProtoReflect() protoreflect.Message

func (*ListProductsReq) Reset

func (x *ListProductsReq) Reset()

func (*ListProductsReq) Size

func (x *ListProductsReq) Size() (n int)

func (*ListProductsReq) String

func (x *ListProductsReq) String() string

type ListProductsResp

type ListProductsResp struct {
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProductsResp) Descriptor deprecated

func (*ListProductsResp) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsResp.ProtoReflect.Descriptor instead.

func (*ListProductsResp) FastRead

func (x *ListProductsResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ListProductsResp) FastWrite

func (x *ListProductsResp) FastWrite(buf []byte) (offset int)

func (*ListProductsResp) GetProducts

func (x *ListProductsResp) GetProducts() []*Product

func (*ListProductsResp) ProtoMessage

func (*ListProductsResp) ProtoMessage()

func (*ListProductsResp) ProtoReflect

func (x *ListProductsResp) ProtoReflect() protoreflect.Message

func (*ListProductsResp) Reset

func (x *ListProductsResp) Reset()

func (*ListProductsResp) Size

func (x *ListProductsResp) Size() (n int)

func (*ListProductsResp) String

func (x *ListProductsResp) String() string

type Product

type Product struct {
	Id          uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Picture     string   `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"`
	Price       float32  `protobuf:"fixed32,5,opt,name=price,proto3" json:"price,omitempty"`
	Categories  []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"`
	// contains filtered or unexported fields
}

func (*Product) Descriptor deprecated

func (*Product) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) FastRead

func (x *Product) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Product) FastWrite

func (x *Product) FastWrite(buf []byte) (offset int)

func (*Product) GetCategories

func (x *Product) GetCategories() []string

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetId

func (x *Product) GetId() uint32

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPicture

func (x *Product) GetPicture() string

func (*Product) GetPrice

func (x *Product) GetPrice() float32

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) Size

func (x *Product) Size() (n int)

func (*Product) String

func (x *Product) String() string

type ProductCatalogService

type ProductCatalogService interface {
	ListProducts(ctx context.Context, req *ListProductsReq) (res *ListProductsResp, err error)
	GetProduct(ctx context.Context, req *GetProductReq) (res *GetProductResp, err error)
	SearchProducts(ctx context.Context, req *SearchProductReq) (res *SearchProductResp, err error)
}

type SearchProductReq

type SearchProductReq struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchProductReq) Descriptor deprecated

func (*SearchProductReq) Descriptor() ([]byte, []int)

Deprecated: Use SearchProductReq.ProtoReflect.Descriptor instead.

func (*SearchProductReq) FastRead

func (x *SearchProductReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*SearchProductReq) FastWrite

func (x *SearchProductReq) FastWrite(buf []byte) (offset int)

func (*SearchProductReq) GetQuery

func (x *SearchProductReq) GetQuery() string

func (*SearchProductReq) ProtoMessage

func (*SearchProductReq) ProtoMessage()

func (*SearchProductReq) ProtoReflect

func (x *SearchProductReq) ProtoReflect() protoreflect.Message

func (*SearchProductReq) Reset

func (x *SearchProductReq) Reset()

func (*SearchProductReq) Size

func (x *SearchProductReq) Size() (n int)

func (*SearchProductReq) String

func (x *SearchProductReq) String() string

type SearchProductResp

type SearchProductResp struct {
	Results []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchProductResp) Descriptor deprecated

func (*SearchProductResp) Descriptor() ([]byte, []int)

Deprecated: Use SearchProductResp.ProtoReflect.Descriptor instead.

func (*SearchProductResp) FastRead

func (x *SearchProductResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*SearchProductResp) FastWrite

func (x *SearchProductResp) FastWrite(buf []byte) (offset int)

func (*SearchProductResp) GetResults

func (x *SearchProductResp) GetResults() []*Product

func (*SearchProductResp) ProtoMessage

func (*SearchProductResp) ProtoMessage()

func (*SearchProductResp) ProtoReflect

func (x *SearchProductResp) ProtoReflect() protoreflect.Message

func (*SearchProductResp) Reset

func (x *SearchProductResp) Reset()

func (*SearchProductResp) Size

func (x *SearchProductResp) Size() (n int)

func (*SearchProductResp) String

func (x *SearchProductResp) String() string

Directories

Path Synopsis
Code generated by Kitex v0.9.1.
Code generated by Kitex v0.9.1.

Jump to

Keyboard shortcuts

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