summaryrefslogtreecommitdiff
path: root/plugins/server/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-09-16 17:12:37 +0300
committerValery Piashchynski <[email protected]>2021-09-16 17:12:37 +0300
commitf3491c089b4da77fd8d2bc942a88b6b8d117a8a5 (patch)
tree32bfffb1f24eeee7b909747cc00a6a6b9fd3ee83 /plugins/server/interface.go
parent5d2cd55ab522d4f1e65a833f91146444465a32ac (diff)
Move plugins to a separate repository
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/server/interface.go')
-rw-r--r--plugins/server/interface.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/plugins/server/interface.go b/plugins/server/interface.go
deleted file mode 100644
index b0f84a7f..00000000
--- a/plugins/server/interface.go
+++ /dev/null
@@ -1,23 +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 return a new command based on the .rr.yaml server.command section
- CmdFactory(env Env) (func() *exec.Cmd, error)
- // NewWorker return a new worker with provided and attached by the user listeners and environment variables
- NewWorker(ctx context.Context, env Env, listeners ...events.Listener) (*worker.Process, error)
- // NewWorkerPool return new pool of workers (PHP) with attached events listeners, env variables and based on the provided configuration
- NewWorkerPool(ctx context.Context, opt *pool.Config, env Env, listeners ...events.Listener) (pool.Pool, error)
-}