Documentation ¶
Index ¶
- type App
- 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 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)
func (*WFactory) NewWorker ¶
func (wf *WFactory) NewWorker(ctx context.Context, env Env) (roadrunner.WorkerBase, error)
func (*WFactory) NewWorkerPool ¶
func (wf *WFactory) NewWorkerPool(ctx context.Context, opt *roadrunner.Config, env Env) (roadrunner.Pool, error)
type WorkerFactory ¶
type WorkerFactory interface { NewWorker(ctx context.Context, env Env) (roadrunner.WorkerBase, error) NewWorkerPool(ctx context.Context, opt *roadrunner.Config, env Env) (roadrunner.Pool, error) }
Click to show internal directories.
Click to hide internal directories.