Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestDuration ¶
type RequestDuration struct {
// contains filtered or unexported fields
}
RequestDuration is a structure which allows the calculation of randomised request durations
func NewRequestDuration ¶
func NewRequestDuration(percentile50, percentile90, percentile99 time.Duration, variance int) *RequestDuration
NewRequestDuration creates a new RequestDuration
func (*RequestDuration) Calculate ¶
func (r *RequestDuration) Calculate() time.Duration
Calculate a new random request duration
Click to show internal directories.
Click to hide internal directories.