diff options
Diffstat (limited to 'factory.go')
-rw-r--r-- | factory.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/factory.go b/factory.go new file mode 100644 index 00000000..e58d9364 --- /dev/null +++ b/factory.go @@ -0,0 +1,12 @@ +package roadrunner + +import "os/exec" + +// Factory is responsible of wrapping given command into tasks worker. +type Factory interface { + // NewWorker creates new worker process based on given process. + NewWorker(cmd *exec.Cmd) (w *Worker, err error) + + // Close closes all open factory descriptors. + Close() error +} |