Documentation ¶
Index ¶
- Variables
- type BaristaService
- type BaristaServiceImpl
- func (BaristaServiceImpl *BaristaServiceImpl) AddBrewJob(brewjob entities.BrewJob) ([]byte, error)
- func (BaristaServiceImpl *BaristaServiceImpl) ChangeStatus(brewJobId []byte, status string) error
- func (BaristaServiceImpl *BaristaServiceImpl) FindAllBrewJobs() ([]entities.BrewJob, error)
- func (BaristaServiceImpl *BaristaServiceImpl) FindByBrewJobById(brewJobId []byte) (entities.BrewJob, error)
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)
Click to show internal directories.
Click to hide internal directories.