forked from yuxh/gearman-go
		
	
						commit
						26ea07a917
					
				@ -24,6 +24,14 @@ func (inpack *inPack) Data() []byte {
 | 
			
		||||
	return inpack.data
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (inpack *inPack) Handle() string {
 | 
			
		||||
	return inpack.handle
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (inpack *inPack) UniqueId() string {
 | 
			
		||||
	return inpack.uniqueId
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (inpack *inPack) Err() error {
 | 
			
		||||
	if inpack.dataType == dtError {
 | 
			
		||||
		return getError(inpack.data)
 | 
			
		||||
 | 
			
		||||
@ -6,4 +6,6 @@ type Job interface {
 | 
			
		||||
	SendWarning(data []byte)
 | 
			
		||||
	SendData(data []byte)
 | 
			
		||||
	UpdateStatus(numerator, denominator int)
 | 
			
		||||
	Handle() string
 | 
			
		||||
	UniqueId() string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user