1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00
vsphere-influxdb-go/vendor/github.com/influxdata/influxdb/stress/v2/stress_client/directive.go
2017-10-25 20:52:40 +00:00

20 lines
518 B
Go

package stressClient
// Directive is a struct to enable communication between SetStatements and the stressClient backend
// Directives change state for the stress test
type Directive struct {
Property string
Value string
Tracer *Tracer
}
// NewDirective creates a new instance of a Directive with the appropriate state variable to change
func NewDirective(property string, value string, tracer *Tracer) Directive {
d := Directive{
Property: property,
Value: value,
Tracer: tracer,
}
return d
}