Documentation ¶
Index ¶
- Variables
- func Bites(s int64) string
- func Bytes(s int64) string
- func NewThread(config *Config)
- func PrintStats(w io.Writer, config *Config)
- func RoundFloat(x float64, prec int) float64
- func Start(cfg Config)
- func StartStatsAggregator(config *Config)
- type Config
- type Connection
- type ConnectionManager
- type RequestStats
- type Source
- type SpacesFormat
- type StatsSource
- type StatsSourcePerSecond
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnectionErrors int32 = 0 ReadErrors int32 = 0 WriteErrors int32 = 0 )
Total connection error
Functions ¶
func RoundFloat ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Dial ¶
func (this *Connection) Dial() error
func (*Connection) Exec ¶
func (this *Connection) Exec(req *http.Request, resp chan *RequestStats)
func (*Connection) IsConnected ¶
func (this *Connection) IsConnected() bool
func (*Connection) Return ¶
func (this *Connection) Return()
func (*Connection) Take ¶
func (this *Connection) Take()
type ConnectionManager ¶
type ConnectionManager struct { C chan *Connection // contains filtered or unexported fields }
func NewConnectionManager ¶
func NewConnectionManager(config *Config) (result *ConnectionManager)
type RequestStats ¶
type SpacesFormat ¶
type SpacesFormat struct {
// contains filtered or unexported fields
}
Format with space prefix
func (SpacesFormat) String ¶
func (this SpacesFormat) String() string
Click to show internal directories.
Click to hide internal directories.