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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

Repository inmemory todo repository

func NewRepository

func NewRepository() *Repository

NewRepository return Repository

func (*Repository) Create

func (r *Repository) Create(ctx context.Context, t *todo.Todo) error

Create 作成

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, id todo.ID) error

Delete 削除

func (*Repository) FindList

func (r *Repository) FindList(ctx context.Context) ([]*todo.Todo, error)

FindList リストで返す

func (*Repository) UpdateDone

func (r *Repository) UpdateDone(ctx context.Context, id todo.ID, done bool) error

UpdateDone 完了状態の更新

func (*Repository) UpdateTitle

func (r *Repository) UpdateTitle(ctx context.Context, id todo.ID, title string) error

UpdateTitle タイトル更新

Jump to

Keyboard shortcuts

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