summaryrefslogtreecommitdiff
path: root/plugins/factory/app_provider.go
blob: 58fc686c69dcf1b897d6fc9eb021bcbc207dbe74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package factory

import (
	"os/exec"

	"github.com/temporalio/roadrunner-temporal/roadrunner"
)

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)
}