MCPcopy
hub / github.com/redis/go-redis / NewConn

Function NewConn

internal/pool/conn.go:140–142  ·  view source on GitHub ↗
(netConn net.Conn)

Source from the content-addressed store, hash-verified

138}
139
140func NewConn(netConn net.Conn) *Conn {
141 return NewConnWithBufferSize(netConn, proto.DefaultBufferSize, proto.DefaultBufferSize)
142}
143
144func NewConnWithBufferSize(netConn net.Conn, readBufSize, writeBufSize int) *Conn {
145 now := time.Now()

Callers 15

SetNetConnMethod · 0.92
initConnOnMockServerFunction · 0.92
createMockPoolConnectionFunction · 0.92
TestConnectionHookFunction · 0.92
createMockConnectionFunction · 0.92
TestReAuthOnlyWhenIdleFunction · 0.92
TestReAuthRespectsClosedFunction · 0.92
TestConn_UsedMethodsFunction · 0.85

Calls 1

NewConnWithBufferSizeFunction · 0.85

Tested by 15

SetNetConnMethod · 0.74
initConnOnMockServerFunction · 0.74
createMockPoolConnectionFunction · 0.74
TestConnectionHookFunction · 0.74
createMockConnectionFunction · 0.74
TestReAuthOnlyWhenIdleFunction · 0.74
TestReAuthRespectsClosedFunction · 0.74
TestConn_UsedMethodsFunction · 0.68
TestConn_UsableUnusableFunction · 0.68