flushhttp

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 7 Imported by: 0

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

func Handler() http.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL