12 lines
194 B
Go
12 lines
194 B
Go
package worker
|
|
|
|
type Job interface {
|
|
Err() error
|
|
Data() []byte
|
|
SendWarning(data []byte)
|
|
SendData(data []byte)
|
|
UpdateStatus(numerator, denominator int)
|
|
Handle() string
|
|
UniqueId() string
|
|
}
|