Documentation ¶
Index ¶
- Variables
- type GetProductReq
- func (*GetProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetProductReq) FastWrite(buf []byte) (offset int)
- func (x *GetProductReq) GetId() uint32
- func (*GetProductReq) ProtoMessage()
- func (x *GetProductReq) ProtoReflect() protoreflect.Message
- func (x *GetProductReq) Reset()
- func (x *GetProductReq) Size() (n int)
- func (x *GetProductReq) String() string
- type GetProductResp
- func (*GetProductResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetProductResp) FastWrite(buf []byte) (offset int)
- func (x *GetProductResp) GetProduct() *Product
- func (*GetProductResp) ProtoMessage()
- func (x *GetProductResp) ProtoReflect() protoreflect.Message
- func (x *GetProductResp) Reset()
- func (x *GetProductResp) Size() (n int)
- func (x *GetProductResp) String() string
- type ListProductsReq
- func (*ListProductsReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListProductsReq) FastWrite(buf []byte) (offset int)
- func (x *ListProductsReq) GetCategoryName() string
- func (x *ListProductsReq) GetPage() int32
- func (x *ListProductsReq) GetPageSize() int32
- func (*ListProductsReq) ProtoMessage()
- func (x *ListProductsReq) ProtoReflect() protoreflect.Message
- func (x *ListProductsReq) Reset()
- func (x *ListProductsReq) Size() (n int)
- func (x *ListProductsReq) String() string
- type ListProductsResp
- func (*ListProductsResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListProductsResp) FastWrite(buf []byte) (offset int)
- func (x *ListProductsResp) GetProducts() []*Product
- func (*ListProductsResp) ProtoMessage()
- func (x *ListProductsResp) ProtoReflect() protoreflect.Message
- func (x *ListProductsResp) Reset()
- func (x *ListProductsResp) Size() (n int)
- func (x *ListProductsResp) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Product) FastWrite(buf []byte) (offset int)
- func (x *Product) GetCategories() []string
- func (x *Product) GetDescription() string
- func (x *Product) GetId() uint32
- func (x *Product) GetName() string
- func (x *Product) GetPicture() string
- func (x *Product) GetPrice() float32
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) Size() (n int)
- func (x *Product) String() string
- type ProductCatalogService
- type SearchProductsReq
- func (*SearchProductsReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchProductsReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *SearchProductsReq) FastWrite(buf []byte) (offset int)
- func (x *SearchProductsReq) GetQuery() string
- func (*SearchProductsReq) ProtoMessage()
- func (x *SearchProductsReq) ProtoReflect() protoreflect.Message
- func (x *SearchProductsReq) Reset()
- func (x *SearchProductsReq) Size() (n int)
- func (x *SearchProductsReq) String() string
- type SearchProductsResp
- func (*SearchProductsResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchProductsResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *SearchProductsResp) FastWrite(buf []byte) (offset int)
- func (x *SearchProductsResp) GetResults() []*Product
- func (*SearchProductsResp) ProtoMessage()
- func (x *SearchProductsResp) ProtoReflect() protoreflect.Message
- func (x *SearchProductsResp) Reset()
- func (x *SearchProductsResp) Size() (n int)
- func (x *SearchProductsResp) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_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) 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) 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) 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) 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) GetCategories ¶
func (*Product) GetDescription ¶
func (*Product) GetPicture ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
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 *SearchProductsReq) (res *SearchProductsResp, err error) }
type SearchProductsReq ¶
type SearchProductsReq struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*SearchProductsReq) Descriptor
deprecated
func (*SearchProductsReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchProductsReq.ProtoReflect.Descriptor instead.
func (*SearchProductsReq) FastWrite ¶
func (x *SearchProductsReq) FastWrite(buf []byte) (offset int)
func (*SearchProductsReq) GetQuery ¶
func (x *SearchProductsReq) GetQuery() string
func (*SearchProductsReq) ProtoMessage ¶
func (*SearchProductsReq) ProtoMessage()
func (*SearchProductsReq) ProtoReflect ¶
func (x *SearchProductsReq) ProtoReflect() protoreflect.Message
func (*SearchProductsReq) Reset ¶
func (x *SearchProductsReq) Reset()
func (*SearchProductsReq) Size ¶
func (x *SearchProductsReq) Size() (n int)
func (*SearchProductsReq) String ¶
func (x *SearchProductsReq) String() string
type SearchProductsResp ¶
type SearchProductsResp struct { Results []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*SearchProductsResp) Descriptor
deprecated
func (*SearchProductsResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchProductsResp.ProtoReflect.Descriptor instead.
func (*SearchProductsResp) FastWrite ¶
func (x *SearchProductsResp) FastWrite(buf []byte) (offset int)
func (*SearchProductsResp) GetResults ¶
func (x *SearchProductsResp) GetResults() []*Product
func (*SearchProductsResp) ProtoMessage ¶
func (*SearchProductsResp) ProtoMessage()
func (*SearchProductsResp) ProtoReflect ¶
func (x *SearchProductsResp) ProtoReflect() protoreflect.Message
func (*SearchProductsResp) Reset ¶
func (x *SearchProductsResp) Reset()
func (*SearchProductsResp) Size ¶
func (x *SearchProductsResp) Size() (n int)
func (*SearchProductsResp) String ¶
func (x *SearchProductsResp) String() string
Click to show internal directories.
Click to hide internal directories.