forked from yuxh/gearman-go
Bring back ability to get function name
This commit is contained in:
parent
26ea07a917
commit
94b00affec
@ -24,6 +24,10 @@ func (inpack *inPack) Data() []byte {
|
||||
return inpack.data
|
||||
}
|
||||
|
||||
func (inpack *inPack) Fn() string {
|
||||
return inpack.fn
|
||||
}
|
||||
|
||||
func (inpack *inPack) Handle() string {
|
||||
return inpack.handle
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package worker
|
||||
type Job interface {
|
||||
Err() error
|
||||
Data() []byte
|
||||
Fn() string
|
||||
SendWarning(data []byte)
|
||||
SendData(data []byte)
|
||||
UpdateStatus(numerator, denominator int)
|
||||
|
Loading…
Reference in New Issue
Block a user