boltstore

package
v0.0.0-...-0eb56ef Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 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 BoltStore

type BoltStore struct {
	// contains filtered or unexported fields
}

BoltStore is a task store implementaiton based on Bolt

func (*BoltStore) All

func (bs *BoltStore) All() (tasks []*task.Task)

All returns all tasks in bolt db

func (*BoltStore) Create

func (bs *BoltStore) Create(tsk *task.Task) (createdTask *task.Task)

Create saves the task to bolt db

func (*BoltStore) Delete

func (bs *BoltStore) Delete(id string)

Delete removes one task from bolt db

func (*BoltStore) DeleteAll

func (bs *BoltStore) DeleteAll()

DeleteAll removes all tasks from bolt db

func (*BoltStore) Get

func (bs *BoltStore) Get(id string) (foundTask *task.Task)

Get returns task for given ID

func (*BoltStore) Update

func (bs *BoltStore) Update(id string, tsk *task.Task) (updateTask *task.Task)

Update updates given task in bolt db

Jump to

Keyboard shortcuts

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