memory

package
v0.0.0-...-5a28bd7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortByPriority

func SortByPriority(ts togo.Tasks) []togo.Task

Types

type InMemoryStore

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

func NewMemoryStore

func NewMemoryStore() InMemoryStore

func (InMemoryStore) AddOrUpdateTask

func (ms InMemoryStore) AddOrUpdateTask(t togo.Task) error

func (InMemoryStore) All

func (ms InMemoryStore) All() ([]togo.Task, error)

func (InMemoryStore) Count

func (ms InMemoryStore) Count() int

func (InMemoryStore) FindByDueDate

func (ms InMemoryStore) FindByDueDate(dueDate *time.Time) ([]togo.Task, error)

func (InMemoryStore) FindTaskByName

func (ms InMemoryStore) FindTaskByName(name string) (togo.Task, error)

func (InMemoryStore) OverdueTasks

func (ms InMemoryStore) OverdueTasks() ([]togo.Task, error)

func (InMemoryStore) RemoveTask

func (ms InMemoryStore) RemoveTask(t togo.Task) error

Jump to

Keyboard shortcuts

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