Documentation
¶
Index ¶
Constants ¶
View Source
const TaskTypeGenerateName = "task:generate"
Variables ¶
This section is empty.
Functions ¶
func CreateGenerateTask ¶
func CreateGenerateTask(req GenerateRequest) (*asynq.Task, error)
func GenerateTaskId ¶
func GenerateTaskId() string
Types ¶
type GenerateRequest ¶
type GenerateResponse ¶
type GenerateResponse struct {
Task string `json:"task"`
State string `json:"state"`
Pool string `json:"pool"`
Result any `json:"result,omitempty"`
}
func CreateGenerateResponse ¶
func CreateGenerateResponse(info *asynq.TaskInfo) (*GenerateResponse, error)
Click to show internal directories.
Click to hide internal directories.