Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidStatus ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager tracks tasks within a single session (in-memory, no persistence).
func (*Manager) Delete ¶
Delete removes a task by ID and cleans up dangling block references in other tasks.
type Task ¶
type Task struct {
ID string
Subject string
Description string
ActiveForm string
Status TaskStatus
Owner string
Blocks []string
BlockedBy []string
Metadata map[string]string
CreatedAt time.Time
UpdatedAt time.Time
}
Task represents a single tracked task in the session.
type TaskStatus ¶
type TaskStatus string
const ( StatusPending TaskStatus = "pending" StatusInProgress TaskStatus = "in_progress" StatusCompleted TaskStatus = "completed" )
func ValidStatuses ¶
func ValidStatuses() []TaskStatus
type UpdateOptions ¶
type UpdateOptions struct {
Status *TaskStatus
ExpectedStatus *TaskStatus // if set, the update fails if current status doesn't match
Subject *string
Description *string
ActiveForm *string
Owner *string
AddBlocks []string
AddBlockedBy []string
Metadata map[string]string // merged; nil values are ignored
}
UpdateOptions specifies which fields to change on a task.
Click to show internal directories.
Click to hide internal directories.