business

package
v0.0.0-...-b31642b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBusiness

type IBusiness interface {
	Validate() error
}

type ILabelBusiness

type ILabelBusiness interface {
	List() (labels []models.Label, err error)
	Create() (models.Label, error)
	Retrieve(id uint) (label models.Label, err error)
	Update() (models.Label, error)
	Delete(id uint) error
}

type ITaskBusiness

type ITaskBusiness interface {
	List() (tasks []models.Task, err error)
	Create() (models.Task, error)
	Retrieve(id uint) (task models.Task, err error)
	Update() (models.Task, error)
	Delete(id uint) error
	Priority() (uint, error)
}

type Label

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

func NewLabel

func NewLabel(lr repository.ILabelRepository, lm models.Label) *Label

func (Label) Create

func (l Label) Create() (models.Label, error)

func (Label) Delete

func (l Label) Delete(id uint) error

func (Label) List

func (l Label) List() ([]models.Label, error)

func (Label) Retrieve

func (l Label) Retrieve(id uint) (models.Label, error)

func (Label) Update

func (l Label) Update() (models.Label, error)

func (Label) Validate

func (l Label) Validate() error

type Task

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

func NewTask

func NewTask(tr repository.ITaskRepository, tm models.Task) *Task

func (Task) Create

func (t Task) Create() (models.Task, error)

func (Task) Delete

func (t Task) Delete(id uint) error

func (Task) List

func (t Task) List() ([]models.Task, error)

func (Task) Priority

func (t Task) Priority() (float32, error)

func (Task) Retrieve

func (t Task) Retrieve(id uint) (models.Task, error)

func (Task) Update

func (t Task) Update() (models.Task, error)

func (Task) Validate

func (t Task) Validate() error

Jump to

Keyboard shortcuts

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