Documentation ¶
Index ¶
- Variables
- func GetFunkyName() string
- type Basket
- func (c *Basket) AddTask(task models.Task) error
- func (c *Basket) Connect(cloakFolder string) error
- func (c *Basket) GetTaskByName(app, name string) (models.Task, error)
- func (c *Basket) IsAppRegistered(name string) bool
- func (c *Basket) ListAllTasks() ([]models.Task, error)
- func (c *Basket) ListTasks(of string) ([]models.Task, error)
- func (c *Basket) RegisterApp(name string) error
- func (c *Basket) RemoveTask(app, task string) error
- func (c *Basket) UpdateTask(task models.Task) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ADJECTIVES = []string{}/* 1116 elements not displayed */
View Source
var NOUNS = []string{}/* 1525 elements not displayed */
Functions ¶
func GetFunkyName ¶
func GetFunkyName() string
Types ¶
type Basket ¶
type Basket struct {
// contains filtered or unexported fields
}
Basket is a Connection struct for communicating between bolt db
func (*Basket) GetTaskByName ¶
GetTaskByName returns a single task for a given app nad name
func (*Basket) IsAppRegistered ¶
IsAppRegistered checks if the app is registered in the cloak DB so that there is a better structure pf task
func (*Basket) ListAllTasks ¶
ListAllTasks returns list of all tasks of all registered apps
func (*Basket) RegisterApp ¶
RegisterApp registers an app in the cloak DB
func (*Basket) RemoveTask ¶
RemoveTask removes a task completely from cloak DB
Click to show internal directories.
Click to hide internal directories.