store

package
v0.0.0-...-9e109ee Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tasks       = &TaskStore{Tasks: map[entity.TaskId]*entity.TaskEntity{}}
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type TaskStore

type TaskStore struct {
	LastId entity.TaskId
	Tasks  map[entity.TaskId]*entity.TaskEntity
}

動作確認用

func (*TaskStore) Add

func (ts *TaskStore) Add(t *entity.TaskEntity) (int, error)

func (*TaskStore) All

func (ts *TaskStore) All() entity.Tasks

Jump to

Keyboard shortcuts

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