store

package
v0.0.0-...-6b2d746 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Close() error
	Create(task *model.Task) error
	Read(id uint64) (*model.Task, error)
	Update(task *model.Task) error
	Delete(id uint64) error
	List() ([]*model.Task, error)
}

Store interacts with persistent storage

func New

func New(filename string) (Store, error)

New creates Store

Jump to

Keyboard shortcuts

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