Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeKey ¶
type AttributeKey string
type EnqueuedStatus ¶
type EnqueuedStatus bool
const EnqueueFailed EnqueuedStatus = false
const EnqueueSucceeded EnqueuedStatus = true
type Job ¶
type Job struct { Id Id Attributes map[AttributeKey]interface{} HiddenAttributes map[AttributeKey]interface{} `json:"-"` }
func (*Job) Initialise ¶
func (*Job) IsProcessed ¶
func (*Job) RecordCompletionTime ¶
func (j *Job) RecordCompletionTime()
func (*Job) RecordTimeForAttribute ¶
func (j *Job) RecordTimeForAttribute(key AttributeKey)
type Queue ¶
func (*Queue) Enqueue ¶
func (jq *Queue) Enqueue(newJob *Job) EnqueuedStatus
func (*Queue) Initialise ¶
func (*Queue) WithQueueLength ¶
Click to show internal directories.
Click to hide internal directories.