Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capture ¶ added in v1.8.0
Capture identifies a dispatch independently of completion/serialization order.
type CaptureClock ¶ added in v1.8.0
type CaptureClock struct {
// contains filtered or unexported fields
}
CaptureClock anchors wall-clock timestamps to monotonic elapsed time.
func NewCaptureClock ¶ added in v1.8.0
func NewCaptureClock() *CaptureClock
func (*CaptureClock) Next ¶ added in v1.8.0
func (c *CaptureClock) Next() (Capture, error)
type Result ¶
type Result struct {
Capture Capture
Task Task
StatusCode int
Duration time.Duration
BytesRead int64
Error error
Meta map[string]string
}
Result holds the outcome of a driver execution.
type Selector ¶
type Selector struct {
// contains filtered or unexported fields
}
Selector picks tasks by weight using the Vose alias method for O(1) selection.
func NewSelector ¶
func NewSelector(targets []config.TargetConfig) (*Selector, error)
NewSelector builds the alias table from the target list. Panics if targets is empty.