Documentation ¶
Index ¶
- Variables
- func GetNextBackgroundTask() func() ([]*metrics.Metric, *config.SampleConfig, error)
- func RegisterBackgroundTask(f func() ([]*metrics.Metric, *config.SampleConfig, error))
- func RestoreOriginParamsMetrics(metrics []*metrics.Metric, params map[string]string) []*metrics.Metric
- func RunWithVariables(ctx context.Context, variables map[string]string, stepsgen map[string]any, ...) ([]*metrics.Metric, error)
- type RunnerResult
- type StepParamTemplate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BackgroundTask are task that must be run in background BackgroundTask = []func() ([]*metrics.Metric, *config.SampleConfig, error){} // DisableBackgroundTask disable background task DisableBackgroundTask = false )
Functions ¶
func GetNextBackgroundTask ¶ added in v3.3.0
func GetNextBackgroundTask() func() ([]*metrics.Metric, *config.SampleConfig, error)
GetNextBackgroundTask return the next background task
func RegisterBackgroundTask ¶ added in v3.3.0
func RegisterBackgroundTask(f func() ([]*metrics.Metric, *config.SampleConfig, error))
RegisterBackgroundTask register a background task
Types ¶
type RunnerResult ¶
RunnerResult represents the result of a runner.
func RunSample ¶
func RunSample(ctx context.Context, sample *config.SampleConfig) *RunnerResult
RunSample runs a sample.
type StepParamTemplate ¶
type StepParamTemplate struct { Env map[string]string Date time.Time Context context.Context Variables map[string]string }
StepParamTemplate represents a step parameter template.
func (*StepParamTemplate) GetContext ¶
func (s *StepParamTemplate) GetContext(key string) string
GetContext return context value by key
Click to show internal directories.
Click to hide internal directories.