memdb

package
v0.0.0-...-a27f0e4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("Not found")

Functions

func NewDB

func NewDB() usecase.TaskDatabase

インスタンスの作成

Types

type Instance

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

タスクデータベースの実装

func (*Instance) Add

func (s *Instance) Add(task *entity.Task) (int, error)

タスクの追加

func (*Instance) Get

func (s *Instance) Get(id int) (*entity.Task, error)

Get タスクを取得する

func (*Instance) SearchUnfinished

func (s *Instance) SearchUnfinished() ([]*entity.Task, error)

未完了のタスクの検索

func (*Instance) Update

func (s *Instance) Update(task *entity.Task) error

Update タスクを更新にする

Jump to

Keyboard shortcuts

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