Documentation ¶
Index ¶
- Variables
- type CatalogService
- func (s *CatalogService) GetProduct(ctx context.Context, req *pb.GetProductRequest) (*spb.Product, error)
- func (s *CatalogService) ListProducts(ctx context.Context, req *pb.ListProductsRequest) (*pb.ListProductsResponse, error)
- func (s *CatalogService) SearchProducts(ctx context.Context, req *pb.SearchProductsRequest) (*pb.SearchProductsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCatalogService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type CatalogService ¶
type CatalogService struct { pb.UnimplementedCatalogServer // contains filtered or unexported fields }
func NewCatalogService ¶
func NewCatalogService(uc *biz.CatalogUsecase, logger log.Logger) *CatalogService
func (*CatalogService) GetProduct ¶
func (s *CatalogService) GetProduct(ctx context.Context, req *pb.GetProductRequest) (*spb.Product, error)
func (*CatalogService) ListProducts ¶
func (s *CatalogService) ListProducts(ctx context.Context, req *pb.ListProductsRequest) (*pb.ListProductsResponse, error)
func (*CatalogService) SearchProducts ¶
func (s *CatalogService) SearchProducts(ctx context.Context, req *pb.SearchProductsRequest) (*pb.SearchProductsResponse, error)
Click to show internal directories.
Click to hide internal directories.