|
|
пре 5 година | |
|---|---|---|
| .. | ||
| README.md | пре 11 година | |
| collector.go | пре 8 година | |
| conn.go | пре 6 година | |
| hostname.go | пре 11 година | |
| regexp.go | пре 5 година | |
| transferstats_test.go | пре 5 година | |
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.)