Documentation ¶
Index ¶
- Variables
- type ProductService
- func (s *ProductService) CreateProduct(ctx context.Context, req *pb.CreateProductRequest) (*pb.CreateProductReply, error)
- func (s *ProductService) DeleteProduct(ctx context.Context, req *pb.DeleteProductRequest) (*pb.DeleteProductReply, error)
- func (s *ProductService) GetProduct(ctx context.Context, req *pb.GetProductRequest) (*pb.GetProductReply, error)
- func (s *ProductService) ListProduct(ctx context.Context, req *pb.ListProductRequest) (*pb.ListProductReply, error)
- func (s *ProductService) UpdateProduct(ctx context.Context, req *pb.UpdateProductRequest) (*pb.UpdateProductReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewProductService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type ProductService ¶
type ProductService struct { pb.UnimplementedProductServer // contains filtered or unexported fields }
func NewProductService ¶
func NewProductService(uc *biz.ProductUsecase) *ProductService
func (*ProductService) CreateProduct ¶
func (s *ProductService) CreateProduct(ctx context.Context, req *pb.CreateProductRequest) (*pb.CreateProductReply, error)
func (*ProductService) DeleteProduct ¶
func (s *ProductService) DeleteProduct(ctx context.Context, req *pb.DeleteProductRequest) (*pb.DeleteProductReply, error)
func (*ProductService) GetProduct ¶
func (s *ProductService) GetProduct(ctx context.Context, req *pb.GetProductRequest) (*pb.GetProductReply, error)
func (*ProductService) ListProduct ¶
func (s *ProductService) ListProduct(ctx context.Context, req *pb.ListProductRequest) (*pb.ListProductReply, error)
func (*ProductService) UpdateProduct ¶
func (s *ProductService) UpdateProduct(ctx context.Context, req *pb.UpdateProductRequest) (*pb.UpdateProductReply, error)
Click to show internal directories.
Click to hide internal directories.