1 Star 0 Fork 0

sqos/beats

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
wrap.go 262 Bytes
Copy Edit Raw Blame History
Steffen Siering authored 2016-06-07 20:26 . Output IO counters (#1806)
package transport
import "net"
func ConnWrapper(d Dialer, w func(net.Conn) net.Conn) Dialer {
return DialerFunc(func(network, addr string) (net.Conn, error) {
c, err := d.Dial(network, addr)
if err != nil {
return nil, err
}
return w(c), nil
})
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.2.1

Search

0d507c66 1850385 C8b1a773 1850385