Documentation ¶ Index ¶ func WrapConn(bwc metrics.Reporter, c transport.Conn) transport.Conn type MeteredConn func (mc *MeteredConn) Read(b []byte) (int, error) func (mc *MeteredConn) Write(b []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WrapConn ¶ func WrapConn(bwc metrics.Reporter, c transport.Conn) transport.Conn Types ¶ type MeteredConn ¶ type MeteredConn struct { transport.Conn // contains filtered or unexported fields } func (*MeteredConn) Read ¶ func (mc *MeteredConn) Read(b []byte) (int, error) func (*MeteredConn) Write ¶ func (mc *MeteredConn) Write(b []byte) (int, error) Source Files ¶ View all Source files conn.go Click to show internal directories. Click to hide internal directories.