Documentation
¶
Overview ¶
Package flushhttp provides an HTTP handler for triggering coverage flush.
Import this package only when you need HTTP-based coverage control. If you only need timer/signal-based flush, use the flush package directly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns an http.Handler that exposes coverage data endpoints.
Endpoints:
GET /internal/coverage — returns current coverage counters as binary data POST /internal/coverage/flush — flushes to Storage, then returns status POST /internal/coverage/clear — resets coverage counters (atomic mode only)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.