Rod Hynes f179c8e0cc Clarify use of page_view_regexes/https_request_regexes hace 5 años
..
README.md 4e9fe41bbe Moved the stats code into a sub-package called transferstats. hace 11 años
collector.go e3fa9574ec Retire/disable stats hace 8 años
conn.go dfc850abda Fix staticcheck issues hace 6 años
hostname.go 4e9fe41bbe Moved the stats code into a sub-package called transferstats. hace 11 años
regexp.go f179c8e0cc Clarify use of page_view_regexes/https_request_regexes hace 5 años
transferstats_test.go f179c8e0cc Clarify use of page_view_regexes/https_request_regexes hace 5 años

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