debugging

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	IP   string
	Port uint16
}

Address represents represents a IP:Port

type RequestSummary

type RequestSummary struct {
	Client   Address
	Server   Address
	DNS      string
	Path     string
	Method   string
	ByStatus map[int]Stats
}

RequestSummary represents a (debug-friendly) aggregated view of requests matching a (client, server, path, method) tuple

func HTTP

func HTTP(stats map[http.Key]http.RequestStats, dns map[util.Address][]string) []RequestSummary

HTTP returns a debug-friendly representation of map[http.Key]http.RequestStats

type Stats

type Stats struct {
	Count              int
	FirstLatencySample float64
	LatencyP50         float64
}

Stats consolidates request count and latency information for a certain status code

Jump to

Keyboard shortcuts

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