Versions in this module Expand all Collapse all v0 v0.0.3 Aug 22, 2025 v0.0.2 Aug 22, 2025 v0.0.1 Aug 21, 2025 Changes in this version + type JSONMap map[string]interface + func (j *JSONMap) Scan(value interface{}) error + func (j JSONMap) Value() (driver.Value, error) + type Service struct + func NewService() *Service + func (s *Service) CreateTask(ctx context.Context, task *Task) error + func (s *Service) DeleteTask(ctx context.Context, userID string, taskID uint) error + func (s *Service) GetTask(ctx context.Context, userID string, taskID uint) (*Task, error) + func (s *Service) ListTasks(ctx context.Context, userID string) ([]*Task, error) + func (s *Service) SetDB(db *gorm.DB) + func (s *Service) UpdateTaskStatus(ctx context.Context, userID string, taskID uint, status TaskStatus) error + type Task struct + CompletedAt *time.Time + Config JSONMap + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Description string + Error string + ID uint + Name string + Priority int + Result JSONMap + ScheduledAt *time.Time + StartedAt *time.Time + Status TaskStatus + Type string + UpdatedAt time.Time + UserID string + func (Task) TableName() string + type TaskStatus int + const TaskStatusCancelled + const TaskStatusCompleted + const TaskStatusFailed + const TaskStatusPending + const TaskStatusRunning + func (t TaskStatus) String() string