Documentation
¶
Index ¶
- func Float(min, max float64) float64
- func Int(min, max int) int
- func Interval(min, max time.Duration) time.Duration
- func Point(lat, lon, radiusKM float64) (float64, float64)
- func Timestamp(min, max time.Time) time.Time
- type Arg
- type Drk
- type EnvMapping
- type EnvironmentVariables
- type Event
- type FieldMissingErr
- type LatLon
- type Query
- type Rate
- type Runner
- type VU
- type Workflow
- type WorkflowQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Drk ¶
type Drk struct { GlobalArgs map[string]Arg `yaml:"args"` EnvMappings map[string]EnvMapping `yaml:"arg_mappings"` Workflows map[string]Workflow `yaml:"workflows"` Activities map[string]Query `yaml:"activities"` }
func (*Drk) MaxVUsRequired ¶ added in v0.17.0
MaxVUsRequired returns number of VUs required by the busiest workload.
type EnvMapping ¶ added in v0.4.0
type EnvironmentVariables ¶ added in v0.14.0
type EnvironmentVariables struct { Config string `env:"CONFIG"` URL string `env:"URL"` Driver string `env:"DRIVER"` Duration time.Duration `env:"DURATION"` Retries int `env:"RETRIES"` QueryTimeout time.Duration `env:"QUERY_TIMEOUT"` Debug bool `env:"DEBUG"` Sensitive bool `env:"SENSITIVE"` AverageWindowSize int `env:"AVERAGE_WINDOW_SIZE"` NoColor bool `env:"NO_COLOR"` ConnectionLifetime time.Duration `env:"CONNECTION_LIFETIME"` }
EnvironmentVariables are set by the caller and change how drk behaves.
type FieldMissingErr ¶
type FieldMissingErr struct {
Name string
}
FieldMissingErr is returned when a fields isn't found in the config file.
func (FieldMissingErr) Error ¶
func (err FieldMissingErr) Error() string
type Rate ¶
func (*Rate) UnmarshalYAML ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) GetEventStream ¶
type WorkflowQuery ¶
Click to show internal directories.
Click to hide internal directories.