summaryrefslogtreecommitdiff
path: root/plugins/server/interface.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/server/interface.go')
-rw-r--r--plugins/server/interface.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/server/interface.go b/plugins/server/interface.go
deleted file mode 100644
index 22f02685..00000000
--- a/plugins/server/interface.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package server
-
-import (
- "context"
- "os/exec"
-
- "github.com/spiral/roadrunner/v2/pkg/events"
- "github.com/spiral/roadrunner/v2/pkg/pool"
- "github.com/spiral/roadrunner/v2/pkg/worker"
-)
-
-// Env variables type alias
-type Env map[string]string
-
-// Server creates workers for the application.
-type Server interface {
- CmdFactory(env Env) (func() *exec.Cmd, error)
- NewWorker(ctx context.Context, env Env, listeners ...events.Listener) (*worker.Process, error)
- NewWorkerPool(ctx context.Context, opt pool.Config, env Env, listeners ...events.Listener) (pool.Pool, error)
-}