service

package
v0.0.0-...-9e351bc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Create

func (s *Service) Create(ctx context.Context, product *productPkg.Product) error

func (*Service) Get

func (*Service) GetMany

func (s *Service) GetMany(ctx context.Context, ids []productPkg.ID) ([]*productPkg.Product, error)

func (*Service) Update

func (s *Service) Update(ctx context.Context, product *productPkg.Product) error

Jump to

Keyboard shortcuts

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