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 { AddTask(task entities.Task) ([]byte, error) IsTaskDoneByOrderId([]byte) (bool, error) GetAllTasks() ([]entities.Task, error) }
func NewTaskService ¶
func NewTaskService( taskRepository repositories.TaskRepository, configuration *configuration.Configuration) BaristaService
type BaristaServiceImpl ¶
type BaristaServiceImpl struct {
// contains filtered or unexported fields
}
func (*BaristaServiceImpl) AddTask ¶
func (baristaServiceImpl *BaristaServiceImpl) AddTask(task entities.Task) ([]byte, error)
func (*BaristaServiceImpl) GetAllTasks ¶
func (baristaServiceImpl *BaristaServiceImpl) GetAllTasks() ([]entities.Task, error)
func (*BaristaServiceImpl) IsTaskDoneByOrderId ¶
func (baristaServiceImpl *BaristaServiceImpl) IsTaskDoneByOrderId(orderId []byte) (bool, error)
Click to show internal directories.
Click to hide internal directories.