Documentation
¶
Overview ¶
Package urgency computes a weighted urgency score for tasks. Scores are a polynomial sum of configurable coefficients applied to task attributes. Higher scores indicate more urgent tasks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Components ¶
Components returns the non-zero urgency terms for a task, suitable for rendering a breakdown table. Only terms whose weight * coefficient != 0 are included.
Types ¶
type Weights ¶
type Weights struct {
Age float64 `yaml:"age"`
AgeNorm float64 `yaml:"age_norm"`
Blocked float64 `yaml:"blocked"`
Blocking float64 `yaml:"blocking"`
Deadline float64 `yaml:"deadline"`
Scheduled float64 `yaml:"scheduled"`
Tags float64 `yaml:"tags"`
Waiting float64 `yaml:"waiting"`
}
Weights holds the urgency scoring coefficients. Defaults for all fields are defined in config/default.yaml.
Click to show internal directories.
Click to hide internal directories.