Documentation
¶
Index ¶
- type Job
- func (m Job) Data() []byte
- func (m Job) Err() error
- func (m Job) Fn() string
- func (m Job) Handle() string
- func (m Job) OutData() []byte
- func (m *Job) SendData(data []byte)
- func (m *Job) SendWarning(warning []byte)
- func (m Job) UniqueId() string
- func (m *Job) UpdateStatus(numerator, denominator int)
- func (m *Job) Warnings() [][]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶ added in v0.5.1
type Job struct {
Payload, Name, GearmanHandle, ID string
GearmanErr error
GearmanWarnings [][]byte
DataBuffer bytes.Buffer
Numerator, Denominator int
}
Job is a fake Gearman job for tests
func CreateMockJob ¶
CreateMockJob creates an object that implements the gearman-go/worker#Job interface
func (*Job) SendWarning ¶ added in v0.5.1
SendWarning appends to the array of job warnings
func (*Job) UpdateStatus ¶ added in v0.5.1
UpdateStatus updates the progress of job
Click to show internal directories.
Click to hide internal directories.