Documentation ¶
Index ¶
- type Server
- func (s *Server) Create(ctx context.Context, in *productPb.NewProduct) (*productPb.ProductResponse, error)
- func (s *Server) Delete(ctx context.Context, in *productPb.ProductId) (*productPb.ProductId, error)
- func (s *Server) GetByFilters(ctx context.Context, in *productPb.GetByFiltersRequest) (*productPb.ManyProductResponse, error)
- func (s *Server) GetById(ctx context.Context, in *productPb.ProductId) (*productPb.Product, error)
- func (s *Server) GetBySlug(ctx context.Context, in *productPb.GetBySlugRequest) (*productPb.Product, error)
- func (s *Server) GetByStoreId(ctx context.Context, in *productPb.StoreId) (*productPb.ManyProductResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { productPb.UnimplementedProductServiceServer Pg *gorm.DB AuthClient *client.AuthClient }
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, in *productPb.NewProduct) (*productPb.ProductResponse, error)
func (*Server) GetByFilters ¶
func (s *Server) GetByFilters(ctx context.Context, in *productPb.GetByFiltersRequest) (*productPb.ManyProductResponse, error)
func (*Server) GetByStoreId ¶
Click to show internal directories.
Click to hide internal directories.