service

package
v0.0.0-...-ac6bbda Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 2 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
}

Service ...

func NewService

func NewService(session repository.Session) (*Service, error)

NewService creates a service

func (*Service) CreateProduct

func (s *Service) CreateProduct(p *entity.Product) (*entity.Product, error)

CreateProduct ...

func (*Service) MigrateProduct

func (s *Service) MigrateProduct()

MigrateProduct ...

func (*Service) ReadProduct

func (s *Service) ReadProduct(id string) (*entity.Product, error)

ReadProduct ...

func (*Service) ReadProducts

func (s *Service) ReadProducts() ([]entity.Product, error)

ReadProducts ...

Jump to

Keyboard shortcuts

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