Add golint, make linting top-level

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
This commit is contained in:
Riyaz Faizullabhoy
2016-12-19 15:43:51 -08:00
parent 9eadb18715
commit f2a1c0dd24
14 changed files with 60 additions and 27 deletions

View File

@@ -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 {