Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, product *productPkg.Product) error
- func (s *Service) Get(ctx context.Context, id productPkg.ID) (*productPkg.Product, error)
- func (s *Service) GetMany(ctx context.Context, ids []productPkg.ID) ([]*productPkg.Product, error)
- func (s *Service) Update(ctx context.Context, product *productPkg.Product) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewProductService ¶
func NewProductService(storage storage) *Service
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, id productPkg.ID) (*productPkg.Product, error)
func (*Service) GetMany ¶
func (s *Service) GetMany(ctx context.Context, ids []productPkg.ID) ([]*productPkg.Product, error)
Click to show internal directories.
Click to hide internal directories.