todo

package
v0.0.0-...-c8ed9d9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 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 Usecase

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

Usecase ユースケース

func NewUsecase

func NewUsecase(
	todoSvc *todosvc.Service,
) *Usecase

NewUsecase return Usecase

func (*Usecase) Create

func (uc *Usecase) Create(ctx context.Context, title string) (*todo.Todo, error)

Create 作成

func (*Usecase) Delete

func (uc *Usecase) Delete(ctx context.Context, id int64) error

Delete 削除

func (*Usecase) Done

func (uc *Usecase) Done(ctx context.Context, id int64) error

Done 完了

func (*Usecase) GetList

func (uc *Usecase) GetList(ctx context.Context) ([]*todo.Todo, error)

GetList リスト

func (*Usecase) UnDone

func (uc *Usecase) UnDone(ctx context.Context, id int64) error

UnDone 未完了

func (*Usecase) UpdateTitle

func (uc *Usecase) UpdateTitle(ctx context.Context, id int64, title string) error

UpdateTitle タイトル更新

Jump to

Keyboard shortcuts

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