debugging

package
v0.0.0-...-551a65d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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