mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-05 00:50:24 +08:00
## Summary The new endpoint returns the current information to be used when calling the diagnostic procedure. This also adds: - add indexed connection info and method to extract active connections from connTracker - add edge address to Event struct and conn tracker - remove unnecessary event send - add tunnel configuration handler - adjust cmd and metrics to create diagnostic server Closes TUN-8728
11 lines
377 B
Go
11 lines
377 B
Go
package diagnostic
|
|
|
|
import "time"
|
|
|
|
const (
|
|
defaultCollectorTimeout = time.Second * 10 // This const define the timeout value of a collector operation.
|
|
collectorField = "collector" // used for logging purposes
|
|
systemCollectorName = "system" // used for logging purposes
|
|
tunnelStateCollectorName = "tunnelState" // used for logging purposes
|
|
)
|