schedule

package
v0.0.0-...-03efb0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 ScheduleCommand struct {
	Name   string `json:"name" validate:"required"`
	RoomID string `json:"roomID" validate:"required"`
}

type ScheduleCommandRes

type ScheduleCommandRes struct {
	ScheduleID string `json:"scheduleID"`
}

type ScheduleQuery

type ScheduleQuery struct {
	ID     string `json:"ID"`
	Name   string `json:"name"`
	RoomID string `json:"roomID"`
}

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 TaskCommand struct {
	ScheduleID   string
	StartTime    time.Time
	DurationDay  int32
	TaskDetailID string
}

type TaskDependencyCommand

type TaskDependencyCommand struct {
	TaskID       string `json:"taskID"`
	DependencyID string `json:"dependencyID"`
}

type TaskDependencyQuery

type TaskDependencyQuery struct {
	TaskID       string `json:"taskID"`
	DependencyID string `json:"dependencyID"`
}

type TaskDetailCommand

type TaskDetailCommand struct {
	Name       string
	OwnerID    string
	AssigneeID string
	Status     string
}

type TaskDetailQuery

type TaskDetailQuery struct {
	ID         string `json:"ID"`
	OwnerID    string `json:"ownerID"`
	AssigneeID string `json:"assigneeID"`
	Status     string `json:"status"`
}

type TaskQuery

type TaskQuery struct {
	ID           string    `json:"ID"`
	Name         string    `json:"name"`
	StartTime    time.Time `json:"startTime"`
	DurationDay  int32     `json:"durationDay"`
	ScheduleID   string    `json:"scheduleID"`
	EndTime      time.Time `json:"endTime"`
	TaskDetailID string    `json:"taskDetailID"`
}

type TaskQueryFilter

type TaskQueryFilter struct {
	StartTime *time.Time
	EndTime   *time.Time
}

type TaskQueryFilterParams

type TaskQueryFilterParams struct {
	StartTime string `query:"start-time"`
	EndTime   string `query:"end-time"`
}

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

type TasksDependency map[string][]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL