summaryrefslogtreecommitdiff
path: root/plugins/server/interface.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-23 23:38:10 +0300
committerValery Piashchynski <[email protected]>2021-01-23 23:38:10 +0300
commit7fb3cc3588cfde9260a6bb431330ce1e0a71f56d (patch)
tree3200cf2136f7413a7e1cfc6ecdaa83716f9655f9 /plugins/server/interface.go
parentee5d34abde7f3931bf939498eb7a8cb170232f4f (diff)
interfaces folder deprecated
Diffstat (limited to 'plugins/server/interface.go')
-rw-r--r--plugins/server/interface.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/server/interface.go b/plugins/server/interface.go
index a2d8b92b..fe04b85b 100644
--- a/plugins/server/interface.go
+++ b/plugins/server/interface.go
@@ -4,10 +4,10 @@ import (
"context"
"os/exec"
- "github.com/spiral/roadrunner/v2/interfaces/events"
- "github.com/spiral/roadrunner/v2/interfaces/pool"
- "github.com/spiral/roadrunner/v2/interfaces/worker"
+ "github.com/spiral/roadrunner/v2/pkg/events"
+ "github.com/spiral/roadrunner/v2/pkg/pool"
poolImpl "github.com/spiral/roadrunner/v2/pkg/pool"
+ "github.com/spiral/roadrunner/v2/pkg/worker"
)
// Env variables type alias
@@ -16,6 +16,6 @@ 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.BaseProcess, error)
+ NewWorker(ctx context.Context, env Env, listeners ...events.Listener) (*worker.Process, error)
NewWorkerPool(ctx context.Context, opt poolImpl.Config, env Env, listeners ...events.Listener) (pool.Pool, error)
}