Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HistoryEntry ¶
type Storage ¶
type Storage interface {
// Core operations
SaveTask(t *task.Task) error
ClaimTask(workerID string) (*task.Task, error)
CompleteTask(id string) error
FailTask(id string, errMsg string) error
// Read operations
GetTask(id string) (*task.Task, error)
GetTasks(filter TaskFilter) ([]*task.Task, error)
GetStats() (*Stats, error)
// History
RecordHistory(taskID, event, message string) error
GetTaskHistory(taskID string) ([]*HistoryEntry, error)
// Batch operations
BatchSaveTasks(tasks []*task.Task) error
BatchClaimTasks(workerID string, limit int) ([]*task.Task, error)
// Cleanup
Cleanup(completedRetention, failedRetention time.Duration) error
// Health
Ping() error
Close() error
}
Click to show internal directories.
Click to hide internal directories.