Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct { Config *RunnerConfig // Used for initializing groups, // all groups are initialized then close PauseC, // mean terminate paused status. PauseC chan struct{} CancelC chan struct{} MetricC chan<- *metric.Metric AllGroupsDone <-chan struct{} MetricCollectorsDoneC <-chan struct{} }
func NewRunner ¶
func NewRunner(cfg *RunnerConfig) (*Runner, error)
type RunnerConfig ¶
type RunnerConfig struct { // Duration to run, // 0 mean no limit. Duration time.Duration Groups []*RunnerGroup Metric RunnerMetric }
type RunnerGroup ¶
type RunnerMetric ¶
type RunnerMetric struct { // All are disabled by default, manually enable if required. EnableDefaultRequestMetrics map[metric.DefaultRequestMetric]bool MetricCollectors []metric.Collector }
Click to show internal directories.
Click to hide internal directories.