Documentation
¶
Index ¶
Constants ¶
View Source
const ( Ready windowState = 0 Filled windowState = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Workers uint
Timeout time.Duration
Targets string
Overrides string
Rate float64
MinY time.Duration
MaxY time.Duration
RampUp time.Duration
LogFile string
Verbose bool
}
func ParseFlags ¶
func ParseFlags() *Config
type LogFile ¶ added in v1.1.0
func NewLogFile ¶ added in v1.1.0
func (*LogFile) WriteString ¶ added in v1.1.0
type MovingWindow ¶ added in v1.0.0
type MovingWindow struct {
// contains filtered or unexported fields
}
ring moving window buffer
func (*MovingWindow) Reset ¶ added in v1.0.0
func (mw *MovingWindow) Reset()
func (*MovingWindow) ResetSlot ¶ added in v1.0.0
func (mw *MovingWindow) ResetSlot(slot int)
type OkBadCounter ¶ added in v1.0.0
type OkBadCounter struct {
Ok counter
Bad counter
}
type RampUpController ¶ added in v0.3.0
type RampUpController struct {
// contains filtered or unexported fields
}
func NewRamUpController ¶ added in v0.3.0
func NewRamUpController(rampUpTime time.Duration, maxRate float64) *RampUpController
func (*RampUpController) GetRateChanger ¶ added in v0.3.0
func (r *RampUpController) GetRateChanger() chan float64
GetRateChanger returns a channel for changing the ticker's rate during operation.
type StatsResponse ¶ added in v0.5.0
type StatsResponse struct {
ErrorEof counter
ErrorTimeout counter
ErrorConnRefused counter
ErrorNoSuchHost counter
// contains filtered or unexported fields
}
type Targeter ¶
type Targeter struct {
// contains filtered or unexported fields
}
func NewTargeter ¶
type Ticker ¶ added in v0.3.0
type Ticker struct {
// contains filtered or unexported fields
}
func NewTicker ¶ added in v0.3.0
NewTicker creates a new ticker instance with a given rate and ramp-up time.
func (*Ticker) GetRateChanger ¶ added in v0.3.0
GetRateChanger returns a channel for changing the ticker's rate during operation.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
func InitTerminal ¶
InitTerminal initializes the terminal and sets the UI dimensions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.