summaryrefslogtreecommitdiff
path: root/factory.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-17 02:34:44 +0300
committerValery Piashchynski <[email protected]>2020-12-17 02:34:44 +0300
commit9d5fe4f6a98b30fd73be8259f84fa595ac994a71 (patch)
treee49c46b03d8facc73e96f1b6247d83367cc65398 /factory.go
parent1033c25b6bfc752d6059e446510f651e22cbf49b (diff)
huge refactor
Diffstat (limited to 'factory.go')
-rwxr-xr-xfactory.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/factory.go b/factory.go
deleted file mode 100755
index 482d39f8..00000000
--- a/factory.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package roadrunner
-
-import (
- "context"
- "os/exec"
-)
-
-// Factory is responsible of wrapping given command into tasks WorkerProcess.
-type Factory interface {
- // SpawnWorker creates new WorkerProcess process based on given command.
- // Process must not be started.
- SpawnWorkerWithContext(context.Context, *exec.Cmd) (WorkerBase, error)
-
- SpawnWorker(*exec.Cmd) (WorkerBase, error)
-
- // Close the factory and underlying connections.
- Close(ctx context.Context) error
-}