db

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

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

Go to latest
Published: Nov 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID        uint64
	Text      string
	Completed bool
}

type TasksService

type TasksService interface {
	Close() error
	GetAll() ([]Task, error)
	Add(text string) error
	Complete(id uint64) error
}

func NewTasksService

func NewTasksService() (TasksService, error)

Jump to

Keyboard shortcuts

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