Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + func Replay(packets []ReplayPacket, cfg *ReplayConfig) error + type LoadTestConfig struct + Concurrency int + Data []byte + Duration time.Duration + Protocol string + RPS int + Target string + type LoadTestResult struct + AvgLatency time.Duration + Duration time.Duration + Failed int64 + P50Latency time.Duration + P95Latency time.Duration + P99Latency time.Duration + RPS float64 + Successful int64 + TotalRequests int64 + func RunLoadTest(cfg *LoadTestConfig) (*LoadTestResult, error) + type MockServer struct + func NewMockServer(lib *protocol.Library, protoName string) (*MockServer, error) + func (m *MockServer) Handler() http.Handler + func (m *MockServer) LoadRules(data []byte) error + type ReplayConfig struct + Protocol string + Speed float64 + Target string + type ReplayPacket struct + Data []byte + Protocol string + Timestamp time.Time + type RequestLog struct + Body string + Method string + Path string + Response string + Time time.Time