Generator of traffic between echo instances. Every time interval (as defined by Config.Interval), a grpc request is sent to the source pod, causing it to send a request to the destination echo server. Results are captured for each request for later processing.
| 47 | // causing it to send a request to the destination echo server. Results are |
| 48 | // captured for each request for later processing. |
| 49 | type Generator interface { |
| 50 | // Start sending traffic. |
| 51 | Start() Generator |
| 52 | |
| 53 | // Stop sending traffic and wait for any in-flight requests to complete. |
| 54 | // Returns the Result |
| 55 | Stop() Result |
| 56 | } |
| 57 | |
| 58 | // NewGenerator returns a new Generator with the given configuration. |
| 59 | func NewGenerator(t test.Failer, cfg Config) Generator { |
no outgoing calls
no test coverage detected
searching dependent graphs…