Documentation
¶
Index ¶
- Constants
- func AtomicDec(addr *uint64)
- func AtomicInc(addr *uint64)
- func AtomicMapEdit[T comparable, U any](key T, value U, map_ map[T]U)
- func HTMLForZucchiniMonitor(taskName string, monitorAddr string) string
- func UnmarshalOrPanic[T any](data []byte) T
- type Task
- type TaskCommand
- type TaskPayload
- type TaskStatus
Constants ¶
View Source
const ZUCCHINI_CMD_PREFIX = "zhc:cmd:"
View Source
const ZUCCHINI_RES_PREFIX = "zhc:res:"
View Source
const ZUCCHINI_TASK_PREFIX = "zhc:task:"
Variables ¶
This section is empty.
Functions ¶
func AtomicMapEdit ¶
func AtomicMapEdit[T comparable, U any](key T, value U, map_ map[T]U)
func HTMLForZucchiniMonitor ¶
func UnmarshalOrPanic ¶
Types ¶
type Task ¶
type Task[T any] struct { Payload TaskPayload[T] Status TaskStatus Retries uint }
type TaskCommand ¶
type TaskStatus ¶
type TaskStatus uint8
const ( Queued TaskStatus = iota Processing Failed Succeeded Cancelled )
Click to show internal directories.
Click to hide internal directories.