repository

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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 Repository

type Repository interface {
	InsertTask(ctx context.Context, task *model.Task) error
	SelectTaskList(ctx context.Context) (model.TaskList, error)
}

type SimpleDB

type SimpleDB struct {
	database.Database
}

repository.Repository の実装

func NewSimpleDB added in v0.0.14

func NewSimpleDB(db database.Database) *SimpleDB

func (*SimpleDB) InsertTask added in v0.0.13

func (sd *SimpleDB) InsertTask(ctx context.Context, task *model.Task) error

func (*SimpleDB) SelectTaskList added in v0.0.13

func (sd *SimpleDB) SelectTaskList(ctx context.Context) (model.TaskList, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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