boltdb

package
v0.0.0-...-4df7676 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage in boltdb

func NewStorage

func NewStorage() *Storage

NewStorage instanciates a new boltdb repository

func (*Storage) Add

func (s *Storage) Add(t *task.Task)

Add a new task

func (*Storage) Do

func (s *Storage) Do(id int)

Do a task

func (*Storage) GetAll

func (s *Storage) GetAll() []*task.Task

GetAll from memory

func (*Storage) GetCompleted

func (s *Storage) GetCompleted() []*task.Task

GetCompleted tasks from boltdb

func (*Storage) GetIncompletes

func (s *Storage) GetIncompletes() []*task.Task

GetIncompletes tasks from boltdb

func (*Storage) Remove

func (s *Storage) Remove(id int)

Remove a task from boltdb

Jump to

Keyboard shortcuts

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