db

package
v0.0.0-...-5ca63bf Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	DB *bolt.DB
}

func (*App) AllTasks

func (a *App) AllTasks() ([]Task, error)

func (*App) Close

func (a *App) Close() error

func (*App) Create

func (a *App) Create(task string) (int, error)

func (*App) DeleteTask

func (a *App) DeleteTask(key int) error

func (*App) Init

func (a *App) Init(dbPath string) error

type Task

type Task struct {
	Key int
	Val string
}

Jump to

Keyboard shortcuts

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