service

package
v0.0.0-...-9845e40 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 5 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 {
	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)

Jump to

Keyboard shortcuts

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