db

package
v0.0.0-...-4313da8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *bolt.DB

Functions

func CreateBucket

func CreateBucket(taskBucket string) error

func CreateDirectory

func CreateDirectory(dir string, taskBucket string) (int, error)

func DeleteBucket

func DeleteBucket(taskBucket string) error

func DeleteDir

func DeleteDir(key int, taskBucket string) error

func Init

func Init(dbPath string) error

func RaiseErr

func RaiseErr(text string, tag string) error

Types

type DbError

type DbError struct {
	Err string
	Tag string
}

func (*DbError) Error

func (e *DbError) Error() string

type Dirs

type Dirs struct {
	Key   int
	Value string
}

func AllDir

func AllDir(taskBucket string) ([]Dirs, error)

Jump to

Keyboard shortcuts

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