qscore

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calculator

type Calculator struct {
	UrgencyTags    []UrgencyTag
	UrgencyBegin   int
	DefaultUrgency qduration.Duration
	MinPriority    todotxt.Priority
	NowFunc        func() time.Time
}

func (Calculator) ScoreOf

func (c Calculator) ScoreOf(item *todotxt.Item) Score

type Score

type Score struct {
	Score      float32
	Urgency    float32
	Importance float32
}

func (Score) IsImportant

func (s Score) IsImportant() bool

func (Score) IsUrgent

func (s Score) IsUrgent() bool

type UrgencyTag added in v0.4.0

type UrgencyTag struct {
	Tag    string
	Offset qduration.Duration
}

Jump to

Keyboard shortcuts

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