api

package
v0.0.0-...-d789ca1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Inventory_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.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 NewHTTPServerAPI

func NewHTTPServerAPI(i *inventory.Service, tel telemetry.Provider) http.Handler

NewHTTPServerAPI creates an HTTPServer for the API.

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 (*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 (*CreateProductReviewResponse) ProtoMessage

func (*CreateProductReviewResponse) ProtoMessage()

func (*CreateProductReviewResponse) ProtoReflect

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 (*DeleteProductReviewRequest) ProtoMessage

func (*DeleteProductReviewRequest) ProtoMessage()

func (*DeleteProductReviewRequest) ProtoReflect

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 (*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 HTTPServerAPI

type HTTPServerAPI struct {
	// contains filtered or unexported fields
}

HTTPServerAPI exposes inventory.Service via HTTP.

type InventoryClient

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.

func NewInventoryClient

func NewInventoryClient(cc grpc.ClientConnInterface) InventoryClient

type InventoryGRPC

type InventoryGRPC struct {
	UnimplementedInventoryServer
	Inventory *inventory.Service
}

InventoryGRPC services.

func (*InventoryGRPC) CreateProduct

CreateProduct on the inventory.

func (*InventoryGRPC) CreateProductReview

CreateProductReview on the inventory.

func (*InventoryGRPC) DeleteProduct

DeleteProduct on the inventory.

func (*InventoryGRPC) DeleteProductReview

func (*InventoryGRPC) GetProduct

GetProduct on the inventory.

func (*InventoryGRPC) GetProductReview

func (*InventoryGRPC) SearchProducts

func (*InventoryGRPC) UpdateProduct

UpdateProduct on the inventory.

func (*InventoryGRPC) UpdateProductReview

type InventoryServer

InventoryServer is the server API for Inventory service. All implementations must embed UnimplementedInventoryServer for forward compatibility

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) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetDescription

func (x *Product) GetDescription() string

func (*Product) GetId

func (x *Product) GetId() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPrice

func (x *Product) GetPrice() int64

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

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 Server

type Server struct {
	HTTPAddress  string
	GRPCAddress  string
	ProbeAddress string

	Log        *slog.Logger
	Tracer     trace.TracerProvider
	Meter      metric.MeterProvider
	Propagator propagation.TextMapPropagator

	Inventory *inventory.Service
	// contains filtered or unexported fields
}

Server for the API.

func (*Server) Run

func (s *Server) Run(ctx context.Context) (err error)

Run starts the HTTP and gRPC servers.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

Shutdown HTTP and gRPC servers.

type UnimplementedInventoryServer

type UnimplementedInventoryServer struct {
}

UnimplementedInventoryServer must be embedded to have forward compatible implementations.

func (UnimplementedInventoryServer) CreateProduct

func (UnimplementedInventoryServer) DeleteProduct

func (UnimplementedInventoryServer) GetProduct

func (UnimplementedInventoryServer) GetProductReview

func (UnimplementedInventoryServer) SearchProducts

func (UnimplementedInventoryServer) UpdateProduct

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 (*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 (*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 (*UpdateProductReviewResponse) Reset

func (x *UpdateProductReviewResponse) Reset()

func (*UpdateProductReviewResponse) String

func (x *UpdateProductReviewResponse) String() string

Jump to

Keyboard shortcuts

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