product

package
v0.0.0-...-6907fd9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

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) 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     int64  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	CategoryName string `protobuf:"bytes,3,opt,name=categoryName,proto3" json:"categoryName,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() int64

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 *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) FastRead

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

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

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

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

Directories

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

Jump to

Keyboard shortcuts

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