gearman-go/worker/job.go

13 lines
207 B
Go
Raw Permalink Normal View History

2013-08-30 18:01:10 +08:00
package worker
type Job interface {
2013-12-26 12:06:47 +08:00
Err() error
2013-08-30 18:01:10 +08:00
Data() []byte
Fn() string
2013-08-30 18:01:10 +08:00
SendWarning(data []byte)
SendData(data []byte)
UpdateStatus(numerator, denominator int)
2013-12-31 06:14:19 +08:00
Handle() string
UniqueId() string
2013-08-30 18:01:10 +08:00
}