diff options
Diffstat (limited to 'plugins/server/interface.go')
-rw-r--r-- | plugins/server/interface.go | 8 |
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) } |