1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package factory import ( "os/exec" "github.com/spiral/roadrunner/v2" ) type Env map[string]string type Spawner interface { // CmdFactory create new command factory with given env variables. NewCmd(env Env) (func() *exec.Cmd, error) // NewFactory inits new factory for workers. NewFactory(env Env) (roadrunner.Factory, error) }