Bring back ability to get function name

This commit is contained in:
jake 2014-01-03 15:58:18 -05:00
parent 26ea07a917
commit 94b00affec
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,10 @@ func (inpack *inPack) Data() []byte {
return inpack.data return inpack.data
} }
func (inpack *inPack) Fn() string {
return inpack.fn
}
func (inpack *inPack) Handle() string { func (inpack *inPack) Handle() string {
return inpack.handle return inpack.handle
} }

View File

@ -3,6 +3,7 @@ package worker
type Job interface { type Job interface {
Err() error Err() error
Data() []byte Data() []byte
Fn() string
SendWarning(data []byte) SendWarning(data []byte)
SendData(data []byte) SendData(data []byte)
UpdateStatus(numerator, denominator int) UpdateStatus(numerator, denominator int)