Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TasksWebsocketEndpoint ¶
Types ¶
type Task ¶
type Task struct { ID uuid.UUID Name string Progress int `json:"-"` STAN stan.Conn NATS *nats.Conn TaskFunction func(*Task) `json:"-"` TrackProgress bool `json:"-"` // contains filtered or unexported fields }
Instance of an executing task on a worker
func (*Task) Delay ¶
func (t *Task) Delay()
Put this task in a queue Assigns an ID for a queued task
func (*Task) UpdateProgress ¶
Click to show internal directories.
Click to hide internal directories.