summaryrefslogtreecommitdiff
path: root/factory.go
blob: 97ea3a8705ebf5770231fdb7f1fe047c369d30ef (plain)
1
2
3
4
5
6
7
8
9
10
package roadrunner

import "os/exec"

// Factory is responsible of wrapping given command into tasks worker.
type Factory interface {
	// SpawnWorker creates new worker process based on given command.
	// Process must not be started.
	SpawnWorker(cmd *exec.Cmd) (w *Worker, err error)
}