storage

package
v0.0.0-...-8c4d7ab Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type TaskStore

type TaskStore interface {
	GetAll() ([]*model.Task, error)
	GetById(common.Identifier) (*model.Task, error)
	Create(*model.Task) (*model.Task, error)
	Update(task *model.Task) (*model.Task, error)
	Delete(common.Identifier) error
}

func NewDBStore

func NewDBStore(db *gorm.DB) TaskStore

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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