| 1 | package stressClient |
| 2 | |
| 3 | // Directive is a struct to enable communication between SetStatements and the stressClient backend |
| 4 | // Directives change state for the stress test |
| 5 | type Directive struct { |
| 6 | Property string |
| 7 | Value string |
| 8 | Tracer *Tracer |
| 9 | } |
| 10 | |
| 11 | // NewDirective creates a new instance of a Directive with the appropriate state variable to change |
| 12 | func NewDirective(property string, value string, tracer *Tracer) Directive { |
| 13 | d := Directive{ |
| 14 | Property: property, |
| 15 | Value: value, |
| 16 | Tracer: tracer, |
| 17 | } |
| 18 | return d |
| 19 | } |