Documentation
¶
Overview ¶
Package trace holds the code for taking a capture in the robot system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionHandler ¶
ActionHandler is a function that handles a stream of Actions.
type Manager ¶
type Manager interface {
// Search invokes handler with each output that matches the query.
Search(ctx context.Context, query *search.Query, handler ActionHandler) error
// Register a handler that will accept incoming tasks.
Register(ctx context.Context, host *device.Instance, target *device.Instance, handler TaskHandler) error
// Do asks the manager to send a task to a device.
Do(ctx context.Context, device string, input *Input) (string, error)
// Update adjusts the state of an action.
Update(ctx context.Context, action string, status job.Status, output *Output) error
}
Manager is the interface to a trace manager.
type TaskHandler ¶
TaskHandler is a function that handles a stream of Tasks.
Click to show internal directories.
Click to hide internal directories.