1
0
Fork 0
loadr/lib/types.go

24 lines
441 B
Go
Raw Normal View History

2024-01-17 00:56:04 -07:00
package lib
import (
"sync"
"time"
)
// PerformanceMetrics holds the metrics for performance evaluation.
type PerformanceMetrics struct {
Mu sync.Mutex // Protects the metrics
TotalRequests int32
TotalResponses int32
TotalLatency time.Duration
MaxLatency time.Duration
MinLatency time.Duration
ResponseCounters map[int]int32
}
type RequestError struct {
Verb string
URL string
Err error
}