github.com/psiphon-Labs/psiphon-tunnel-core@v2.0.28+incompatible/psiphon/transferstats/README.md (about)

     1  `transferstats` Package
     2  =======================
     3  
     4  This provides a `net.Conn` interface implementation that can be put in a chain
     5  of connections and used to collect transfer statistics for the network traffic
     6  passing through it.
     7  
     8  Total bytes transferred is recorded, as well as per-hostname bytes transferred
     9  stats for HTTP and HTTPS traffic (as long as the HTTPS traffic contains [SNI]
    10  information). Which hostnames are recorded is specified by a set of regular
    11  expressions.
    12  
    13  [SNI]: https://en.wikipedia.org/wiki/Server_Name_Indication
    14  
    15  (TODO: More info.)