summaryrefslogtreecommitdiff
path: root/ipc/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/interface.go')
-rw-r--r--ipc/interface.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/ipc/interface.go b/ipc/interface.go
deleted file mode 100644
index 1d70cd21..00000000
--- a/ipc/interface.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package ipc
-
-import (
- "context"
- "os/exec"
-
- "github.com/spiral/roadrunner/v2/worker"
-)
-
-// Factory is responsible for wrapping given command into tasks WorkerProcess.
-type Factory interface {
- // SpawnWorkerWithTimeout creates new WorkerProcess process based on given command with context.
- // Process must not be started.
- SpawnWorkerWithTimeout(context.Context, *exec.Cmd) (*worker.Process, error)
- // SpawnWorker creates new WorkerProcess process based on given command.
- // Process must not be started.
- SpawnWorker(*exec.Cmd) (*worker.Process, error)
- // Close the factory and underlying connections.
- Close() error
-}