repository

package
v0.0.0-...-e731ad8 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTaskNotFound = errors.New("task not found")
	ErrTaskExists   = errors.New("task already exists")
)

Functions

This section is empty.

Types

type TaskRepository

type TaskRepository interface {
	Create(ctx context.Context, task *modelrepo.TaskCreateDB) (int64, error)
	Get(ctx context.Context, id int64) (*modelrepo.TaskDB, error)
	List(ctx context.Context) ([]*modelrepo.TaskDB, error)
	Update(ctx context.Context, id int64, task *modelrepo.TaskUpdateDB) (*modelrepo.TaskDB, error)
	Delete(ctx context.Context, id int64) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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