Documentation ¶
Index ¶
- type App
- func (app *App) Close() error
- func (app *App) Configure() error
- func (app *App) Init(provider config.Provider) error
- func (app *App) NewCmd(env Env) (func() *exec.Cmd, error)
- func (app *App) NewFactory(env Env) (roadrunner.Factory, error)
- func (app *App) Serve() chan error
- func (app *App) Stop() error
- type AppConfig
- type Env
- type Spawner
- type WFactory
- func (wf *WFactory) AddListener(l events.EventListener)
- func (wf *WFactory) Init(app Spawner) error
- func (wf *WFactory) NewWorker(ctx context.Context, env Env) (roadrunner.WorkerBase, error)
- func (wf *WFactory) NewWorkerPool(ctx context.Context, opt *roadrunner.Config, env Env) (roadrunner.Pool, error)
- type WorkerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) NewFactory ¶
todo ENV unused
type AppConfig ¶
type AppConfig struct { Command string User string Group string Env Env Relay string // Listen defines connection method and factory to be used to connect to workers: // "pipes", "tcp://:6001", "unix://rr.sock" // This config section must not change on re-configuration. Listen string // RelayTimeout defines for how long socket factory will be waiting for worker connection. This config section // must not change on re-configuration. RelayTimeout time.Duration }
AppConfig config combines factory, pool and cmd configurations.
type WFactory ¶
type WFactory struct {
// contains filtered or unexported fields
}
func (*WFactory) AddListener ¶
func (wf *WFactory) AddListener(l events.EventListener)
Click to show internal directories.
Click to hide internal directories.