service

package
v0.0.0-...-34e87ae Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNameMustNotBeEmpty = errors.New("Name must not be empty.")
	ErrIdMustNotBeEmpty   = errors.New("Id must not be empty.")
)

Functions

This section is empty.

Types

type BaristaService

type BaristaService interface {
	AddBrewJob(entities.BrewJob) ([]byte, error)
	FindByBrewJobById([]byte) (entities.BrewJob, error)
	FindAllBrewJobs() ([]entities.BrewJob, error)
	ChangeStatus([]byte, string) error
}

func NewBaristaService

func NewBaristaService(
	brewrepositiory repositories.Brewjobrepository,
	configuration *configuration.Configuration) BaristaService

type BaristaServiceImpl

type BaristaServiceImpl struct {
	// contains filtered or unexported fields
}

func (*BaristaServiceImpl) AddBrewJob

func (BaristaServiceImpl *BaristaServiceImpl) AddBrewJob(brewjob entities.BrewJob) ([]byte, error)

func (*BaristaServiceImpl) ChangeStatus

func (BaristaServiceImpl *BaristaServiceImpl) ChangeStatus(brewJobId []byte, status string) error

func (*BaristaServiceImpl) FindAllBrewJobs

func (BaristaServiceImpl *BaristaServiceImpl) FindAllBrewJobs() ([]entities.BrewJob, error)

func (*BaristaServiceImpl) FindByBrewJobById

func (BaristaServiceImpl *BaristaServiceImpl) FindByBrewJobById(brewJobId []byte) (entities.BrewJob, error)

Jump to

Keyboard shortcuts

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