Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInventoryServer(s grpc.ServiceRegistrar, srv InventoryServer)
- type CreateProductRequest
- func (*CreateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductRequest) GetDescription() string
- func (x *CreateProductRequest) GetId() string
- func (x *CreateProductRequest) GetName() string
- func (x *CreateProductRequest) GetPrice() int64
- func (*CreateProductRequest) ProtoMessage()
- func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductRequest) Reset()
- func (x *CreateProductRequest) String() string
- type CreateProductResponse
- type CreateProductReviewRequest
- func (*CreateProductReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductReviewRequest) GetDescription() string
- func (x *CreateProductReviewRequest) GetProductId() string
- func (x *CreateProductReviewRequest) GetReviewerId() string
- func (x *CreateProductReviewRequest) GetScore() int32
- func (x *CreateProductReviewRequest) GetTitle() string
- func (*CreateProductReviewRequest) ProtoMessage()
- func (x *CreateProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProductReviewRequest) Reset()
- func (x *CreateProductReviewRequest) String() string
- type CreateProductReviewResponse
- func (*CreateProductReviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductReviewResponse) GetId() string
- func (*CreateProductReviewResponse) ProtoMessage()
- func (x *CreateProductReviewResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProductReviewResponse) Reset()
- func (x *CreateProductReviewResponse) String() string
- type DeleteProductRequest
- func (*DeleteProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductRequest) GetId() string
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) String() string
- type DeleteProductResponse
- type DeleteProductReviewRequest
- func (*DeleteProductReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductReviewRequest) GetId() string
- func (*DeleteProductReviewRequest) ProtoMessage()
- func (x *DeleteProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReviewRequest) Reset()
- func (x *DeleteProductReviewRequest) String() string
- type DeleteProductReviewResponse
- type GetProductRequest
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductResponse) GetCreatedAt() string
- func (x *GetProductResponse) GetDescription() string
- func (x *GetProductResponse) GetId() string
- func (x *GetProductResponse) GetModifiedAt() string
- func (x *GetProductResponse) GetName() string
- func (x *GetProductResponse) GetPrice() int64
- func (*GetProductResponse) ProtoMessage()
- func (x *GetProductResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductResponse) Reset()
- func (x *GetProductResponse) String() string
- type GetProductReviewRequest
- func (*GetProductReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductReviewRequest) GetId() string
- func (*GetProductReviewRequest) ProtoMessage()
- func (x *GetProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *GetProductReviewRequest) Reset()
- func (x *GetProductReviewRequest) String() string
- type GetProductReviewResponse
- func (*GetProductReviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductReviewResponse) GetCreatedAt() string
- func (x *GetProductReviewResponse) GetDescription() string
- func (x *GetProductReviewResponse) GetId() string
- func (x *GetProductReviewResponse) GetModifiedAt() string
- func (x *GetProductReviewResponse) GetProductId() string
- func (x *GetProductReviewResponse) GetReviewerId() string
- func (x *GetProductReviewResponse) GetScore() int32
- func (x *GetProductReviewResponse) GetTitle() string
- func (*GetProductReviewResponse) ProtoMessage()
- func (x *GetProductReviewResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductReviewResponse) Reset()
- func (x *GetProductReviewResponse) String() string
- type InventoryClient
- type InventoryServer
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetDescription() string
- func (x *Product) GetId() string
- func (x *Product) GetName() string
- func (x *Product) GetPrice() int64
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type SearchProductsRequest
- func (*SearchProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchProductsRequest) GetMaxPrice() int64
- func (x *SearchProductsRequest) GetMinPrice() int64
- func (x *SearchProductsRequest) GetPage() int32
- func (x *SearchProductsRequest) GetQueryString() string
- func (*SearchProductsRequest) ProtoMessage()
- func (x *SearchProductsRequest) ProtoReflect() protoreflect.Message
- func (x *SearchProductsRequest) Reset()
- func (x *SearchProductsRequest) String() string
- type SearchProductsResponse
- func (*SearchProductsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchProductsResponse) GetItems() []*Product
- func (x *SearchProductsResponse) GetTotal() int32
- func (*SearchProductsResponse) ProtoMessage()
- func (x *SearchProductsResponse) ProtoReflect() protoreflect.Message
- func (x *SearchProductsResponse) Reset()
- func (x *SearchProductsResponse) String() string
- type UnimplementedInventoryServer
- func (UnimplementedInventoryServer) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error)
- func (UnimplementedInventoryServer) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error)
- func (UnimplementedInventoryServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
- func (UnimplementedInventoryServer) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error)
- func (UnimplementedInventoryServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
- func (UnimplementedInventoryServer) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error)
- func (UnimplementedInventoryServer) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error)
- func (UnimplementedInventoryServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
- func (UnimplementedInventoryServer) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error)
- type UnsafeInventoryServer
- type UpdateProductRequest
- func (*UpdateProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductRequest) GetDescription() string
- func (x *UpdateProductRequest) GetId() string
- func (x *UpdateProductRequest) GetName() string
- func (x *UpdateProductRequest) GetPrice() int64
- func (*UpdateProductRequest) ProtoMessage()
- func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductRequest) Reset()
- func (x *UpdateProductRequest) String() string
- type UpdateProductResponse
- type UpdateProductReviewRequest
- func (*UpdateProductReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductReviewRequest) GetDescription() string
- func (x *UpdateProductReviewRequest) GetId() string
- func (x *UpdateProductReviewRequest) GetScore() int32
- func (x *UpdateProductReviewRequest) GetTitle() string
- func (*UpdateProductReviewRequest) ProtoMessage()
- func (x *UpdateProductReviewRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProductReviewRequest) Reset()
- func (x *UpdateProductReviewRequest) String() string
- type UpdateProductReviewResponse
Constants ¶
const ( Inventory_SearchProducts_FullMethodName = "/api.v1.Inventory/SearchProducts" Inventory_CreateProduct_FullMethodName = "/api.v1.Inventory/CreateProduct" Inventory_UpdateProduct_FullMethodName = "/api.v1.Inventory/UpdateProduct" Inventory_DeleteProduct_FullMethodName = "/api.v1.Inventory/DeleteProduct" Inventory_GetProduct_FullMethodName = "/api.v1.Inventory/GetProduct" Inventory_CreateProductReview_FullMethodName = "/api.v1.Inventory/CreateProductReview" Inventory_UpdateProductReview_FullMethodName = "/api.v1.Inventory/UpdateProductReview" Inventory_DeleteProductReview_FullMethodName = "/api.v1.Inventory/DeleteProductReview" Inventory_GetProductReview_FullMethodName = "/api.v1.Inventory/GetProductReview" )
Variables ¶
var File_api_proto protoreflect.FileDescriptor
var Inventory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1.Inventory", HandlerType: (*InventoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchProducts", Handler: _Inventory_SearchProducts_Handler, }, { MethodName: "CreateProduct", Handler: _Inventory_CreateProduct_Handler, }, { MethodName: "UpdateProduct", Handler: _Inventory_UpdateProduct_Handler, }, { MethodName: "DeleteProduct", Handler: _Inventory_DeleteProduct_Handler, }, { MethodName: "GetProduct", Handler: _Inventory_GetProduct_Handler, }, { MethodName: "CreateProductReview", Handler: _Inventory_CreateProductReview_Handler, }, { MethodName: "UpdateProductReview", Handler: _Inventory_UpdateProductReview_Handler, }, { MethodName: "DeleteProductReview", Handler: _Inventory_DeleteProductReview_Handler, }, { MethodName: "GetProductReview", Handler: _Inventory_GetProductReview_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
Inventory_ServiceDesc is the grpc.ServiceDesc for Inventory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInventoryServer ¶
func RegisterInventoryServer(s grpc.ServiceRegistrar, srv InventoryServer)
Types ¶
type CreateProductRequest ¶
type CreateProductRequest struct { Id string `protobuf:"bytes,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"` Price int64 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
CreateProductRequest message.
func (*CreateProductRequest) Descriptor
deprecated
func (*CreateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.
func (*CreateProductRequest) GetDescription ¶
func (x *CreateProductRequest) GetDescription() string
func (*CreateProductRequest) GetId ¶
func (x *CreateProductRequest) GetId() string
func (*CreateProductRequest) GetName ¶
func (x *CreateProductRequest) GetName() string
func (*CreateProductRequest) GetPrice ¶
func (x *CreateProductRequest) GetPrice() int64
func (*CreateProductRequest) ProtoMessage ¶
func (*CreateProductRequest) ProtoMessage()
func (*CreateProductRequest) ProtoReflect ¶
func (x *CreateProductRequest) ProtoReflect() protoreflect.Message
func (*CreateProductRequest) Reset ¶
func (x *CreateProductRequest) Reset()
func (*CreateProductRequest) String ¶
func (x *CreateProductRequest) String() string
type CreateProductResponse ¶
type CreateProductResponse struct {
// contains filtered or unexported fields
}
CreateProductResponse message.
func (*CreateProductResponse) Descriptor
deprecated
func (*CreateProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductResponse.ProtoReflect.Descriptor instead.
func (*CreateProductResponse) ProtoMessage ¶
func (*CreateProductResponse) ProtoMessage()
func (*CreateProductResponse) ProtoReflect ¶
func (x *CreateProductResponse) ProtoReflect() protoreflect.Message
func (*CreateProductResponse) Reset ¶
func (x *CreateProductResponse) Reset()
func (*CreateProductResponse) String ¶
func (x *CreateProductResponse) String() string
type CreateProductReviewRequest ¶
type CreateProductReviewRequest struct { ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ReviewerId string `protobuf:"bytes,3,opt,name=reviewer_id,json=reviewerId,proto3" json:"reviewer_id,omitempty"` Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score,omitempty"` Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
CreateProductReviewRequest message.
func (*CreateProductReviewRequest) Descriptor
deprecated
func (*CreateProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductReviewRequest.ProtoReflect.Descriptor instead.
func (*CreateProductReviewRequest) GetDescription ¶
func (x *CreateProductReviewRequest) GetDescription() string
func (*CreateProductReviewRequest) GetProductId ¶
func (x *CreateProductReviewRequest) GetProductId() string
func (*CreateProductReviewRequest) GetReviewerId ¶
func (x *CreateProductReviewRequest) GetReviewerId() string
func (*CreateProductReviewRequest) GetScore ¶
func (x *CreateProductReviewRequest) GetScore() int32
func (*CreateProductReviewRequest) GetTitle ¶
func (x *CreateProductReviewRequest) GetTitle() string
func (*CreateProductReviewRequest) ProtoMessage ¶
func (*CreateProductReviewRequest) ProtoMessage()
func (*CreateProductReviewRequest) ProtoReflect ¶
func (x *CreateProductReviewRequest) ProtoReflect() protoreflect.Message
func (*CreateProductReviewRequest) Reset ¶
func (x *CreateProductReviewRequest) Reset()
func (*CreateProductReviewRequest) String ¶
func (x *CreateProductReviewRequest) String() string
type CreateProductReviewResponse ¶
type CreateProductReviewResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
CreateProductReviewResponse message.
func (*CreateProductReviewResponse) Descriptor
deprecated
func (*CreateProductReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductReviewResponse.ProtoReflect.Descriptor instead.
func (*CreateProductReviewResponse) GetId ¶
func (x *CreateProductReviewResponse) GetId() string
func (*CreateProductReviewResponse) ProtoMessage ¶
func (*CreateProductReviewResponse) ProtoMessage()
func (*CreateProductReviewResponse) ProtoReflect ¶
func (x *CreateProductReviewResponse) ProtoReflect() protoreflect.Message
func (*CreateProductReviewResponse) Reset ¶
func (x *CreateProductReviewResponse) Reset()
func (*CreateProductReviewResponse) String ¶
func (x *CreateProductReviewResponse) String() string
type DeleteProductRequest ¶
type DeleteProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeleteProductRequest message.
func (*DeleteProductRequest) Descriptor
deprecated
func (*DeleteProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductRequest) GetId ¶
func (x *DeleteProductRequest) GetId() string
func (*DeleteProductRequest) ProtoMessage ¶
func (*DeleteProductRequest) ProtoMessage()
func (*DeleteProductRequest) ProtoReflect ¶
func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductRequest) Reset ¶
func (x *DeleteProductRequest) Reset()
func (*DeleteProductRequest) String ¶
func (x *DeleteProductRequest) String() string
type DeleteProductResponse ¶
type DeleteProductResponse struct {
// contains filtered or unexported fields
}
DeleteProductResponse message.
func (*DeleteProductResponse) Descriptor
deprecated
func (*DeleteProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductResponse.ProtoReflect.Descriptor instead.
func (*DeleteProductResponse) ProtoMessage ¶
func (*DeleteProductResponse) ProtoMessage()
func (*DeleteProductResponse) ProtoReflect ¶
func (x *DeleteProductResponse) ProtoReflect() protoreflect.Message
func (*DeleteProductResponse) Reset ¶
func (x *DeleteProductResponse) Reset()
func (*DeleteProductResponse) String ¶
func (x *DeleteProductResponse) String() string
type DeleteProductReviewRequest ¶
type DeleteProductReviewRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DeleteProductReviewRequest message.
func (*DeleteProductReviewRequest) Descriptor
deprecated
func (*DeleteProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReviewRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductReviewRequest) GetId ¶
func (x *DeleteProductReviewRequest) GetId() string
func (*DeleteProductReviewRequest) ProtoMessage ¶
func (*DeleteProductReviewRequest) ProtoMessage()
func (*DeleteProductReviewRequest) ProtoReflect ¶
func (x *DeleteProductReviewRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductReviewRequest) Reset ¶
func (x *DeleteProductReviewRequest) Reset()
func (*DeleteProductReviewRequest) String ¶
func (x *DeleteProductReviewRequest) String() string
type DeleteProductReviewResponse ¶
type DeleteProductReviewResponse struct {
// contains filtered or unexported fields
}
DeleteProductReviewResponse message.
func (*DeleteProductReviewResponse) Descriptor
deprecated
func (*DeleteProductReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReviewResponse.ProtoReflect.Descriptor instead.
func (*DeleteProductReviewResponse) ProtoMessage ¶
func (*DeleteProductReviewResponse) ProtoMessage()
func (*DeleteProductReviewResponse) ProtoReflect ¶
func (x *DeleteProductReviewResponse) ProtoReflect() protoreflect.Message
func (*DeleteProductReviewResponse) Reset ¶
func (x *DeleteProductReviewResponse) Reset()
func (*DeleteProductReviewResponse) String ¶
func (x *DeleteProductReviewResponse) String() string
type GetProductRequest ¶
type GetProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetProductRequest message.
func (*GetProductRequest) Descriptor
deprecated
func (*GetProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
func (*GetProductRequest) GetId ¶
func (x *GetProductRequest) GetId() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) ProtoReflect ¶
func (x *GetProductRequest) ProtoReflect() protoreflect.Message
func (*GetProductRequest) Reset ¶
func (x *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (x *GetProductRequest) String() string
type GetProductResponse ¶
type GetProductResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ModifiedAt string `protobuf:"bytes,6,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` // contains filtered or unexported fields }
GetProductResponse message.
func (*GetProductResponse) Descriptor
deprecated
func (*GetProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.
func (*GetProductResponse) GetCreatedAt ¶
func (x *GetProductResponse) GetCreatedAt() string
func (*GetProductResponse) GetDescription ¶
func (x *GetProductResponse) GetDescription() string
func (*GetProductResponse) GetId ¶
func (x *GetProductResponse) GetId() string
func (*GetProductResponse) GetModifiedAt ¶
func (x *GetProductResponse) GetModifiedAt() string
func (*GetProductResponse) GetName ¶
func (x *GetProductResponse) GetName() string
func (*GetProductResponse) GetPrice ¶
func (x *GetProductResponse) GetPrice() int64
func (*GetProductResponse) ProtoMessage ¶
func (*GetProductResponse) ProtoMessage()
func (*GetProductResponse) ProtoReflect ¶
func (x *GetProductResponse) ProtoReflect() protoreflect.Message
func (*GetProductResponse) Reset ¶
func (x *GetProductResponse) Reset()
func (*GetProductResponse) String ¶
func (x *GetProductResponse) String() string
type GetProductReviewRequest ¶
type GetProductReviewRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetProductReviewRequest message.
func (*GetProductReviewRequest) Descriptor
deprecated
func (*GetProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductReviewRequest.ProtoReflect.Descriptor instead.
func (*GetProductReviewRequest) GetId ¶
func (x *GetProductReviewRequest) GetId() string
func (*GetProductReviewRequest) ProtoMessage ¶
func (*GetProductReviewRequest) ProtoMessage()
func (*GetProductReviewRequest) ProtoReflect ¶
func (x *GetProductReviewRequest) ProtoReflect() protoreflect.Message
func (*GetProductReviewRequest) Reset ¶
func (x *GetProductReviewRequest) Reset()
func (*GetProductReviewRequest) String ¶
func (x *GetProductReviewRequest) String() string
type GetProductReviewResponse ¶
type GetProductReviewResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ProductId string `protobuf:"bytes,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` ReviewerId string `protobuf:"bytes,3,opt,name=reviewer_id,json=reviewerId,proto3" json:"reviewer_id,omitempty"` Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score,omitempty"` Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` CreatedAt string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ModifiedAt string `protobuf:"bytes,8,opt,name=modified_at,json=modifiedAt,proto3" json:"modified_at,omitempty"` // contains filtered or unexported fields }
GetProductReviewResponse message.
func (*GetProductReviewResponse) Descriptor
deprecated
func (*GetProductReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductReviewResponse.ProtoReflect.Descriptor instead.
func (*GetProductReviewResponse) GetCreatedAt ¶
func (x *GetProductReviewResponse) GetCreatedAt() string
func (*GetProductReviewResponse) GetDescription ¶
func (x *GetProductReviewResponse) GetDescription() string
func (*GetProductReviewResponse) GetId ¶
func (x *GetProductReviewResponse) GetId() string
func (*GetProductReviewResponse) GetModifiedAt ¶
func (x *GetProductReviewResponse) GetModifiedAt() string
func (*GetProductReviewResponse) GetProductId ¶
func (x *GetProductReviewResponse) GetProductId() string
func (*GetProductReviewResponse) GetReviewerId ¶
func (x *GetProductReviewResponse) GetReviewerId() string
func (*GetProductReviewResponse) GetScore ¶
func (x *GetProductReviewResponse) GetScore() int32
func (*GetProductReviewResponse) GetTitle ¶
func (x *GetProductReviewResponse) GetTitle() string
func (*GetProductReviewResponse) ProtoMessage ¶
func (*GetProductReviewResponse) ProtoMessage()
func (*GetProductReviewResponse) ProtoReflect ¶
func (x *GetProductReviewResponse) ProtoReflect() protoreflect.Message
func (*GetProductReviewResponse) Reset ¶
func (x *GetProductReviewResponse) Reset()
func (*GetProductReviewResponse) String ¶
func (x *GetProductReviewResponse) String() string
type InventoryClient ¶
type InventoryClient interface { SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error) CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*CreateProductResponse, error) UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*UpdateProductResponse, error) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductResponse, error) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductResponse, error) CreateProductReview(ctx context.Context, in *CreateProductReviewRequest, opts ...grpc.CallOption) (*CreateProductReviewResponse, error) UpdateProductReview(ctx context.Context, in *UpdateProductReviewRequest, opts ...grpc.CallOption) (*UpdateProductReviewResponse, error) DeleteProductReview(ctx context.Context, in *DeleteProductReviewRequest, opts ...grpc.CallOption) (*DeleteProductReviewResponse, error) GetProductReview(ctx context.Context, in *GetProductReviewRequest, opts ...grpc.CallOption) (*GetProductReviewResponse, error) }
InventoryClient is the client API for Inventory service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
Inventory gRPC API service.
func NewInventoryClient ¶
func NewInventoryClient(cc grpc.ClientConnInterface) InventoryClient
type InventoryServer ¶
type InventoryServer interface { SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error) // contains filtered or unexported methods }
InventoryServer is the server API for Inventory service. All implementations must embed UnimplementedInventoryServer for forward compatibility
Inventory gRPC API service.
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
Product message.
func (*Product) Descriptor
deprecated
func (*Product) GetDescription ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type SearchProductsRequest ¶
type SearchProductsRequest struct { QueryString string `protobuf:"bytes,1,opt,name=query_string,json=queryString,proto3" json:"query_string,omitempty"` MinPrice *int64 `protobuf:"varint,2,opt,name=min_price,json=minPrice,proto3,oneof" json:"min_price,omitempty"` MaxPrice *int64 `protobuf:"varint,3,opt,name=max_price,json=maxPrice,proto3,oneof" json:"max_price,omitempty"` Page *int32 `protobuf:"varint,4,opt,name=page,proto3,oneof" json:"page,omitempty"` // contains filtered or unexported fields }
SearchProductsRequest message.
func (*SearchProductsRequest) Descriptor
deprecated
func (*SearchProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchProductsRequest.ProtoReflect.Descriptor instead.
func (*SearchProductsRequest) GetMaxPrice ¶
func (x *SearchProductsRequest) GetMaxPrice() int64
func (*SearchProductsRequest) GetMinPrice ¶
func (x *SearchProductsRequest) GetMinPrice() int64
func (*SearchProductsRequest) GetPage ¶
func (x *SearchProductsRequest) GetPage() int32
func (*SearchProductsRequest) GetQueryString ¶
func (x *SearchProductsRequest) GetQueryString() string
func (*SearchProductsRequest) ProtoMessage ¶
func (*SearchProductsRequest) ProtoMessage()
func (*SearchProductsRequest) ProtoReflect ¶
func (x *SearchProductsRequest) ProtoReflect() protoreflect.Message
func (*SearchProductsRequest) Reset ¶
func (x *SearchProductsRequest) Reset()
func (*SearchProductsRequest) String ¶
func (x *SearchProductsRequest) String() string
type SearchProductsResponse ¶
type SearchProductsResponse struct { Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Items []*Product `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
SearchProductsResponse message.
func (*SearchProductsResponse) Descriptor
deprecated
func (*SearchProductsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchProductsResponse.ProtoReflect.Descriptor instead.
func (*SearchProductsResponse) GetItems ¶
func (x *SearchProductsResponse) GetItems() []*Product
func (*SearchProductsResponse) GetTotal ¶
func (x *SearchProductsResponse) GetTotal() int32
func (*SearchProductsResponse) ProtoMessage ¶
func (*SearchProductsResponse) ProtoMessage()
func (*SearchProductsResponse) ProtoReflect ¶
func (x *SearchProductsResponse) ProtoReflect() protoreflect.Message
func (*SearchProductsResponse) Reset ¶
func (x *SearchProductsResponse) Reset()
func (*SearchProductsResponse) String ¶
func (x *SearchProductsResponse) String() string
type UnimplementedInventoryServer ¶
type UnimplementedInventoryServer struct { }
UnimplementedInventoryServer must be embedded to have forward compatible implementations.
func (UnimplementedInventoryServer) CreateProduct ¶
func (UnimplementedInventoryServer) CreateProduct(context.Context, *CreateProductRequest) (*CreateProductResponse, error)
func (UnimplementedInventoryServer) CreateProductReview ¶
func (UnimplementedInventoryServer) CreateProductReview(context.Context, *CreateProductReviewRequest) (*CreateProductReviewResponse, error)
func (UnimplementedInventoryServer) DeleteProduct ¶
func (UnimplementedInventoryServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductResponse, error)
func (UnimplementedInventoryServer) DeleteProductReview ¶
func (UnimplementedInventoryServer) DeleteProductReview(context.Context, *DeleteProductReviewRequest) (*DeleteProductReviewResponse, error)
func (UnimplementedInventoryServer) GetProduct ¶
func (UnimplementedInventoryServer) GetProduct(context.Context, *GetProductRequest) (*GetProductResponse, error)
func (UnimplementedInventoryServer) GetProductReview ¶
func (UnimplementedInventoryServer) GetProductReview(context.Context, *GetProductReviewRequest) (*GetProductReviewResponse, error)
func (UnimplementedInventoryServer) SearchProducts ¶
func (UnimplementedInventoryServer) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error)
func (UnimplementedInventoryServer) UpdateProduct ¶
func (UnimplementedInventoryServer) UpdateProduct(context.Context, *UpdateProductRequest) (*UpdateProductResponse, error)
func (UnimplementedInventoryServer) UpdateProductReview ¶
func (UnimplementedInventoryServer) UpdateProductReview(context.Context, *UpdateProductReviewRequest) (*UpdateProductReviewResponse, error)
type UnsafeInventoryServer ¶
type UnsafeInventoryServer interface {
// contains filtered or unexported methods
}
UnsafeInventoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InventoryServer will result in compilation errors.
type UpdateProductRequest ¶
type UpdateProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"` Price *int64 `protobuf:"varint,4,opt,name=price,proto3,oneof" json:"price,omitempty"` // contains filtered or unexported fields }
UpdateProductRequest message.
func (*UpdateProductRequest) Descriptor
deprecated
func (*UpdateProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductRequest.ProtoReflect.Descriptor instead.
func (*UpdateProductRequest) GetDescription ¶
func (x *UpdateProductRequest) GetDescription() string
func (*UpdateProductRequest) GetId ¶
func (x *UpdateProductRequest) GetId() string
func (*UpdateProductRequest) GetName ¶
func (x *UpdateProductRequest) GetName() string
func (*UpdateProductRequest) GetPrice ¶
func (x *UpdateProductRequest) GetPrice() int64
func (*UpdateProductRequest) ProtoMessage ¶
func (*UpdateProductRequest) ProtoMessage()
func (*UpdateProductRequest) ProtoReflect ¶
func (x *UpdateProductRequest) ProtoReflect() protoreflect.Message
func (*UpdateProductRequest) Reset ¶
func (x *UpdateProductRequest) Reset()
func (*UpdateProductRequest) String ¶
func (x *UpdateProductRequest) String() string
type UpdateProductResponse ¶
type UpdateProductResponse struct {
// contains filtered or unexported fields
}
UpdateProductResponse message.
func (*UpdateProductResponse) Descriptor
deprecated
func (*UpdateProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductResponse.ProtoReflect.Descriptor instead.
func (*UpdateProductResponse) ProtoMessage ¶
func (*UpdateProductResponse) ProtoMessage()
func (*UpdateProductResponse) ProtoReflect ¶
func (x *UpdateProductResponse) ProtoReflect() protoreflect.Message
func (*UpdateProductResponse) Reset ¶
func (x *UpdateProductResponse) Reset()
func (*UpdateProductResponse) String ¶
func (x *UpdateProductResponse) String() string
type UpdateProductReviewRequest ¶
type UpdateProductReviewRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Score *int32 `protobuf:"varint,4,opt,name=score,proto3,oneof" json:"score,omitempty"` Title *string `protobuf:"bytes,5,opt,name=title,proto3,oneof" json:"title,omitempty"` Description *string `protobuf:"bytes,6,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
UpdateProductReviewRequest message.
func (*UpdateProductReviewRequest) Descriptor
deprecated
func (*UpdateProductReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductReviewRequest.ProtoReflect.Descriptor instead.
func (*UpdateProductReviewRequest) GetDescription ¶
func (x *UpdateProductReviewRequest) GetDescription() string
func (*UpdateProductReviewRequest) GetId ¶
func (x *UpdateProductReviewRequest) GetId() string
func (*UpdateProductReviewRequest) GetScore ¶
func (x *UpdateProductReviewRequest) GetScore() int32
func (*UpdateProductReviewRequest) GetTitle ¶
func (x *UpdateProductReviewRequest) GetTitle() string
func (*UpdateProductReviewRequest) ProtoMessage ¶
func (*UpdateProductReviewRequest) ProtoMessage()
func (*UpdateProductReviewRequest) ProtoReflect ¶
func (x *UpdateProductReviewRequest) ProtoReflect() protoreflect.Message
func (*UpdateProductReviewRequest) Reset ¶
func (x *UpdateProductReviewRequest) Reset()
func (*UpdateProductReviewRequest) String ¶
func (x *UpdateProductReviewRequest) String() string
type UpdateProductReviewResponse ¶
type UpdateProductReviewResponse struct {
// contains filtered or unexported fields
}
UpdateProductReviewResponse message.
func (*UpdateProductReviewResponse) Descriptor
deprecated
func (*UpdateProductReviewResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductReviewResponse.ProtoReflect.Descriptor instead.
func (*UpdateProductReviewResponse) ProtoMessage ¶
func (*UpdateProductReviewResponse) ProtoMessage()
func (*UpdateProductReviewResponse) ProtoReflect ¶
func (x *UpdateProductReviewResponse) ProtoReflect() protoreflect.Message
func (*UpdateProductReviewResponse) Reset ¶
func (x *UpdateProductReviewResponse) Reset()
func (*UpdateProductReviewResponse) String ¶
func (x *UpdateProductReviewResponse) String() string