perdocker
perdocker copied to clipboard
Worker refactoring
func NewWorker(lang *Lang, id, timeout int64, in chan Command, die chan error) (Worker, error){
// ...
}
type Worker interface {
Stop()
Start()
}