|
|
il y a 1 an | |
|---|---|---|
| .. | ||
| README.md | il y a 11 ans | |
| collector.go | il y a 8 ans | |
| conn.go | il y a 6 ans | |
| hostname.go | il y a 11 ans | |
| regexp.go | il y a 5 ans | |
| transferstats_test.go | il y a 1 an | |
transferstats PackageThis provides a net.Conn interface implementation that can be put in a chain
of connections and used to collect transfer statistics for the network traffic
passing through it.
Total bytes transferred is recorded, as well as per-hostname bytes transferred stats for HTTP and HTTPS traffic (as long as the HTTPS traffic contains SNI information). Which hostnames are recorded is specified by a set of regular expressions.
(TODO: More info.)