Rod Hynes 2ed7576e76 Fix unit tests před 10 roky
..
README.md 4e9fe41bbe Moved the stats code into a sub-package called transferstats. před 11 roky
collector.go 80973e778d Added comment. před 10 roky
conn.go 9ccc0abd4a Stats collector bug fixes před 10 roky
hostname.go 4e9fe41bbe Moved the stats code into a sub-package called transferstats. před 11 roky
regexp.go 9406e278b9 Revisions to operateTunnel před 10 roky
transferstats_test.go 2ed7576e76 Fix unit tests před 10 roky

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