db

package
v0.0.0-...-8863e1e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(task string) (int, error)

CreateTask stores the task

func DeleteTask

func DeleteTask(key int) error

DeleteTask will delete the task

func Init

func Init(dbPath string) error

Init represents the exported function that will accept the path at which the DB is to be stored

Types

type Task

type Task struct {
	Key   int
	Value string
}

Task represents the structured info that will be stored in the DB

func AllTasks

func AllTasks() ([]Task, error)

AllTasks will read tasks from bolt DB

Jump to

Keyboard shortcuts

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