mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-03 16:53:45 +00:00
Add golint, make linting top-level
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"net"
|
||||
)
|
||||
|
||||
// Conn defines a network connection
|
||||
type Conn interface {
|
||||
io.Reader
|
||||
io.Writer
|
||||
@@ -33,6 +34,7 @@ func NewTCPProxy(listener net.Listener, backendAddr *net.TCPAddr) (*TCPProxy, er
|
||||
}, nil
|
||||
}
|
||||
|
||||
// HandleTCPConnection forwards the TCP traffic to a specified backend address
|
||||
func HandleTCPConnection(client Conn, backendAddr *net.TCPAddr, quit chan bool) {
|
||||
backend, err := net.DialTCP("tcp", nil, backendAddr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user