job

package
v0.0.0-...-e168591 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT, MIT Imports: 5 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 {
	Name       string
	Wg         *sync.WaitGroup
	Rnd        *rand.Rand
	Event      *common.MapStr
	JobQueue   chan worker.Job
	RandomFail bool
	Retries    int
	Attempts   int
}

Job represents the job to be run

func (Job) Process

func (j Job) Process() error

func (Job) Result

func (j Job) Result(err error)

func (Job) String

func (j Job) String() string

Jump to

Keyboard shortcuts

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