Commit 39b50833 authored by Jacob Vosmaer's avatar Jacob Vosmaer

go fmt

parent 04d16195
package helper package helper
import ( import (
"log"
"net/http"
"net/http/httptest" "net/http/httptest"
"net/http" "regexp"
"testing" "testing"
"regexp"
"log"
) )
func AssertResponseCode(t *testing.T, response *httptest.ResponseRecorder, expectedCode int) { func AssertResponseCode(t *testing.T, response *httptest.ResponseRecorder, expectedCode int) {
...@@ -42,4 +42,4 @@ func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httpte ...@@ -42,4 +42,4 @@ func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httpte
handler(w, r) handler(w, r)
})) }))
} }
\ No newline at end of file
...@@ -7,7 +7,7 @@ package lfs ...@@ -7,7 +7,7 @@ package lfs
import ( import (
"../api" "../api"
"../helper" "../helper"
"../proxy" "../proxy"
"bytes" "bytes"
"crypto/sha256" "crypto/sha256"
"encoding/hex" "encoding/hex"
......
...@@ -14,20 +14,20 @@ import ( ...@@ -14,20 +14,20 @@ import (
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
"path"
"strings" "strings"
"path"
"time" "time"
) )
type Upstream struct { type Upstream struct {
Version string Version string
API *api.API API *api.API
Proxy *proxy.Proxy Proxy *proxy.Proxy
DocumentRoot string DocumentRoot string
DevelopmentMode bool DevelopmentMode bool
ResponseHeadersTimeout time.Duration ResponseHeadersTimeout time.Duration
urlPrefix urlPrefix urlPrefix urlPrefix
routes []route routes []route
} }
func New(authBackend string, authSocket string, version string, responseHeadersTimeout time.Duration) *Upstream { func New(authBackend string, authSocket string, version string, responseHeadersTimeout time.Duration) *Upstream {
...@@ -143,4 +143,4 @@ func cleanURIPath(p string) string { ...@@ -143,4 +143,4 @@ func cleanURIPath(p string) string {
np += "/" np += "/"
} }
return np return np
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment