Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// TrackTraffic enables counting of bytes read and written by the connection.
// Use Rx and Tx to get the number of bytes read and written.
TrackTraffic bool
// OnClose is called after the underlying connection is closed and before the Close method returns.
// OnClose is called at most once.
OnClose func()
}
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
Observer allows to observe the number of bytes read and written from a connection.
func ObserverFromConn ¶
Click to show internal directories.
Click to hide internal directories.