data

package
v0.0.0-...-caf4afc Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID         string     `json:"id"`
	Name       string     `json:"name"`
	Status     TaskStatus `json:"status"`
	CreateTime time.Time  `json:"createdAt"`
	UpdateTime time.Time  `json:"updatedAt"`
}

Task represents a task.

swagger:model

type TaskHistory

type TaskHistory struct {
	ID            string            `json:"id"`
	Name          string            `json:"name"`
	CreateTime    time.Time         `json:"createdAt"`
	StatusHistory []TaskStatusEntry `json:"statusHistory"`
}

TaskHistory task with history of status changes

swagger:model

type TaskStatus

type TaskStatus = string
const (
	TASK_CREATED TaskStatus = "created"
	TASK_UPDATED TaskStatus = "updated"
	TASK_DELETED TaskStatus = "deleted"

	TASK_COMPLETED TaskStatus = "completed"
)

type TaskStatusEntry

type TaskStatusEntry struct {
	Status    TaskStatus `json:"status"`
	UpdatedAt time.Time  `json:"updated_at"`
}

TaskStatusEntry task status change entry

swagger:model

Jump to

Keyboard shortcuts

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