Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v1.0.67 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllTasks

func GetAllTasks()

func InitMessageQueue

func InitMessageQueue()

func ProcessAllMessageQueueItems

func ProcessAllMessageQueueItems()

func ProcessMessageQueueItem

func ProcessMessageQueueItem(taskItem *TaskItem) error

func ShutdownMessageQueue

func ShutdownMessageQueue() error

Types

type HttpRequestBody_MessageItem

type HttpRequestBody_MessageItem struct {
	Item TaskItem `json:"item"`
}

type TaskItem

type TaskItem struct {
	ID        string      `json:"_id"`
	Action    string      `json:"action"`
	Data      interface{} `json:"data"`
	Completed bool        `json:"completed"`
	Retries   int         `json:"retries"`
	Created   time.Time   `json:"created"`
}

type UpdateModConfigData

type UpdateModConfigData struct {
	ModReference string `json:"modReference"`
	ModConfig    string `json:"modConfig"`
}

Jump to

Keyboard shortcuts

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