summaryrefslogtreecommitdiff
path: root/factory.go
blob: 3c304824ba6f72c1828db7a44790dd9fdec2cdfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)

	// Close the factory and underlying connections.
	Close() error
}