usecases

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemUseCase

type ItemUseCase interface {
	CreateNote(title string, tags ...string) (*entities.Note, error)
	CreateTask(title string, tags ...string) (*entities.Task, error)
	GetItems() entities.ItemCollection
	GetItem(id int) entities.Manageable
	GetNoteById(id int) (*entities.Note, error)
	GetTaskById(id int) (*entities.Task, error)
	EditItem(id int, data map[string]interface{}) error
	CloneItem(id int) (entities.Manageable, error)
	ArchiveItem(id int) error
	RestoreItem(id int) error
	DeleteItem(id int) error
	TriggerEvent(id int, event string) error
}

func NewItemUseCase

func NewItemUseCase(repository infrastructure.ItemRepository) ItemUseCase

Jump to

Keyboard shortcuts

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