diff options
author | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
commit | e229d83dea4bbe9d0cfe6569c8fbe239690aafb9 (patch) | |
tree | 2d4887ffdb167d660b705415f0617458490d0b9f /factory.go |
init
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 +} |