diff options
author | Valery Piashchynski <[email protected]> | 2021-05-27 19:59:04 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-05-27 19:59:04 +0300 |
commit | e701d4d97fbbc7551e5d931731890933687ca8cd (patch) | |
tree | 8161a022a5b74ce6660ed154344134ec493c3f74 /plugins/server | |
parent | 1ee9f178f95c777d60afae4ac3a74e6134001e27 (diff) |
- Update Makefile
- Update arch diagram
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/server')
-rw-r--r-- | plugins/server/interface.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/server/interface.go b/plugins/server/interface.go index 22f02685..0424d52d 100644 --- a/plugins/server/interface.go +++ b/plugins/server/interface.go @@ -14,7 +14,10 @@ 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) } |