Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Source of the traffic. Source echo.Caller // Options for generating traffic from the Source to the target. Options echo.CallOptions // Interval between successive call operations. If not set, defaults to 1 second. Interval time.Duration // Maximum time to wait for traffic to complete after stopping. If not set, defaults to 15 seconds. StopTimeout time.Duration }
Config for a traffic Generator.
type Generator ¶
type Generator interface { // Start sending traffic. Start() Generator // Stop sending traffic and wait for any in-flight requests to complete. // Returns the Result Stop() Result }
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.
type Result ¶
Result of a traffic generation operation.
func (Result) CheckSuccessRate ¶
CheckSuccessRate asserts that a minimum success threshold was met.
func (Result) PercentSuccess ¶
Click to show internal directories.
Click to hide internal directories.