Documentation ¶
Overview ¶
Package job provides a high-level API to create and schedule a pool of run-ctl and tdaq servers together.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Cfg config.RunCtl Timeout time.Duration // timeout for starting the app // contains filtered or unexported fields }
App models a complete tdaq application, with a run-ctl and its flock of tdaq processes.
func New ¶
New creates a new tdaq application.
No process is started nor scheduled yet and the tdaq application configuration can be further customized or modified.
func (*App) Add ¶
Add adds a collection of tdaq processes to the tdaq application.
Add panics if duplicate processes (identified by name) are added.
type CmdHandlers ¶
type CmdHandlers map[string]tdaq.CmdHandler
CmdHandlers is a map of tdaq command handlers.
type InputHandlers ¶
type InputHandlers map[string]tdaq.InputHandler
InputHandlers is a map of tdaq input handlers.
type OutputHandlers ¶
type OutputHandlers map[string]tdaq.OutputHandler
OutputHandlers is a map of tdaq output handlers.
type Proc ¶
type Proc struct { Dev interface{} // tdaq device value Name string // name of the process Level log.Level Cmds CmdHandlers // command handlers Inputs InputHandlers // input handlers Outputs OutputHandlers // output handlers Handlers RunHandlers // run-handlers }
Proc describes a tdaq process.
type RunHandlers ¶
type RunHandlers []tdaq.RunHandler
RunHandlers is a collection of tdaq run handlers.