Documentation ¶
Index ¶
- type AutoScheduleCommand
- type AutoSchedulePreviewQuery
- type AutoSchedulePreviewQueryParams
- type ScheduleCommand
- type ScheduleCommandRes
- type ScheduleQuery
- type Scheduler
- type TaskCommand
- type TaskDependencyCommand
- type TaskDependencyQuery
- type TaskDetailCommand
- type TaskDetailQuery
- type TaskQuery
- type TaskQueryFilter
- type TaskQueryFilterParams
- type TaskWithDetailCommand
- type TaskWithDetailCommandRequest
- type TaskWithDetailDependencyQuery
- type TaskWithDetailQuery
- type TasksDependency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScheduleCommand ¶
type AutoScheduleCommand struct {
AutoScheduleID string `json:"autoScheduleID"`
}
Interesting if use SSE....
type AutoSchedulePreviewQuery ¶
type AutoSchedulePreviewQuery struct { ScheduleID string `json:"scheduleID"` TasksPreview []TaskWithDetailQuery `json:"tasksPreview"` AutoScheduleID string `json:"autoScheduleID"` }
type AutoSchedulePreviewQueryParams ¶
type AutoSchedulePreviewQueryParams struct { // ScheduleID string `json:scheduleID` params StartTime string `query:"start-time"` // mandatory ExcludeUsersID []string `query:"exclude-users-id"` ExcludeTasksID []string `query:"exclude-tasks-id"` }
Interesting case to use redis Save this params as a key in redis
type ScheduleCommand ¶
type ScheduleCommandRes ¶
type ScheduleCommandRes struct {
ScheduleID string `json:"scheduleID"`
}
type ScheduleQuery ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(tasks []TaskWithDetailQuery) *Scheduler
func (*Scheduler) GetScheduledTask ¶
func (sch *Scheduler) GetScheduledTask() ([]TaskWithDetailQuery, error)
type TaskCommand ¶
type TaskDependencyCommand ¶
type TaskDependencyQuery ¶
type TaskDetailCommand ¶
type TaskDetailQuery ¶
type TaskQueryFilterParams ¶
type TaskWithDetailCommand ¶
type TaskWithDetailCommand struct { ScheduleID string `json:"scheduleID" validate:"required"` StartTime time.Time `json:"startTime"` DurationDay int32 `json:"durationDay"` Name string `json:"name" validate:"required"` OwnerID string `json:"ownerID"` AssigneeID string `json:"assigneeID"` Status string `json:"status"` }
type TaskWithDetailCommandRequest ¶
type TaskWithDetailCommandRequest struct { ScheduleID string `json:"scheduleID" validate:"required"` StartTime string `json:"startTime"` DurationDay int32 `json:"durationDay"` Name string `json:"name" validate:"required"` OwnerID string `json:"ownerID"` AssigneeID string `json:"assigneeID"` Status string `json:"status"` }
type TaskWithDetailDependencyQuery ¶
type TaskWithDetailDependencyQuery struct { TaskWithDetailQuery Dependencies []string }
type TaskWithDetailQuery ¶
type TaskWithDetailQuery struct { TaskID string `json:"taskID"` ScheduleID string `json:"scheduleID"` StartTime time.Time `json:"startTime"` DurationDay int32 `json:"durationDay"` TaskDetailID string `json:"taskDetailID"` Name string `json:"name"` OwnerID string `json:"ownerID"` AssigneeID string `json:"assigneeID"` Status string `json:"status"` Dependencies []string `json:"dependencies"` }
type TasksDependency ¶
Click to show internal directories.
Click to hide internal directories.