Rod Hynes 49eae87f49 Some gitmetalinter fixes 8 lat temu
..
README.md 4e9fe41bbe Moved the stats code into a sub-package called transferstats. 11 lat temu
collector.go 80973e778d Added comment. 10 lat temu
conn.go 49eae87f49 Some gitmetalinter fixes 8 lat temu
hostname.go 4e9fe41bbe Moved the stats code into a sub-package called transferstats. 11 lat temu
regexp.go 9406e278b9 Revisions to operateTunnel 10 lat temu
transferstats_test.go 0d162c8493 Fix: use distinct server IDs in each test case 10 lat temu

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