db

package
v0.0.0-...-317bfff Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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)

func DeleteTask

func DeleteTask(id int) error

func Init

func Init(dbPath string) error

Types

type BoltDb

type BoltDb struct {
	Db         *bolt.DB
	TaskBucket []byte
}

type DbOperator

type DbOperator interface {
	// contains filtered or unexported methods
}

type Task

type Task struct {
	Key   int
	Value string
}

func ReadAllTasks

func ReadAllTasks() ([]Task, error)

Jump to

Keyboard shortcuts

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