Merge pull request #22 from azylman/master

expose job handle/uniqueId
This commit is contained in:
Xing 2013-12-30 19:46:05 -08:00
commit 26ea07a917
2 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,14 @@ func (inpack *inPack) Data() []byte {
return inpack.data return inpack.data
} }
func (inpack *inPack) Handle() string {
return inpack.handle
}
func (inpack *inPack) UniqueId() string {
return inpack.uniqueId
}
func (inpack *inPack) Err() error { func (inpack *inPack) Err() error {
if inpack.dataType == dtError { if inpack.dataType == dtError {
return getError(inpack.data) return getError(inpack.data)

View File

@ -6,4 +6,6 @@ type Job interface {
SendWarning(data []byte) SendWarning(data []byte)
SendData(data []byte) SendData(data []byte)
UpdateStatus(numerator, denominator int) UpdateStatus(numerator, denominator int)
Handle() string
UniqueId() string
} }