job

package
v0.0.0-...-f1c7bc1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	ID        string                 `json:"id"`
	Name      string                 `json:"name"`
	Namespace string                 `json:"namespace"`
	Type      string                 `json:"type"`
	Origin    string                 `json:"origin"`
	Priority  int                    `json:"priority"`
	Data      map[string]interface{} `json:"data"`
	RunAfter  time.Time              `json:"run_after"`
	Retries   int                    `json:"retries"`
	Category  *string                `json:"category"`
}

Job AFAIRE.

func New

func New(namespace, _type string) *Job

NewJob AFAIRE.

func (*Job) SetCategory

func (job *Job) SetCategory(value string) *Job

SetCategory AFAIRE.

func (*Job) SetData

func (job *Job) SetData(key string, value interface{}) *Job

SetData AFAIRE.

func (*Job) SetID

func (job *Job) SetID(value string) *Job

SetID AFAIRE.

func (*Job) SetName

func (job *Job) SetName(value string) *Job

SetName AFAIRE.

func (*Job) SetOrigin

func (job *Job) SetOrigin(value string) *Job

SetOrigin AFAIRE.

func (*Job) SetPriority

func (job *Job) SetPriority(value int) *Job

SetPriority AFAIRE.

func (*Job) SetPriorityCritical

func (job *Job) SetPriorityCritical() *Job

SetPriorityCritical AFAIRE.

func (*Job) SetPriorityHigh

func (job *Job) SetPriorityHigh() *Job

SetPriorityHigh AFAIRE.

func (*Job) SetPriorityLow

func (job *Job) SetPriorityLow() *Job

SetPriorityLow AFAIRE.

func (*Job) SetPriorityMedium

func (job *Job) SetPriorityMedium() *Job

SetPriorityMedium AFAIRE.

func (*Job) SetPriorityNone

func (job *Job) SetPriorityNone() *Job

SetPriorityNone AFAIRE.

func (*Job) SetRetries

func (job *Job) SetRetries(value int) *Job

SetRetries AFAIRE.

func (*Job) SetRunAfter

func (job *Job) SetRunAfter(value time.Time) *Job

SetRunAfter AFAIRE.

func (*Job) SetUUID

func (job *Job) SetUUID() *Job

SetUUID AFAIRE.

Jump to

Keyboard shortcuts

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