Rod Hynes 70f124ff6e Move case-specific test setup to test cases %!s(int64=8) %!d(string=hai) anos
..
README.md 4e9fe41bbe Moved the stats code into a sub-package called transferstats. %!s(int64=11) %!d(string=hai) anos
collector.go e3fa9574ec Retire/disable stats %!s(int64=8) %!d(string=hai) anos
conn.go e3fa9574ec Retire/disable stats %!s(int64=8) %!d(string=hai) anos
hostname.go 4e9fe41bbe Moved the stats code into a sub-package called transferstats. %!s(int64=11) %!d(string=hai) anos
regexp.go 9406e278b9 Revisions to operateTunnel %!s(int64=10) %!d(string=hai) anos
transferstats_test.go 70f124ff6e Move case-specific test setup to test cases %!s(int64=8) %!d(string=hai) anos

README.md

transferstats Package

This 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.)