Commit 0c813ebe authored by Jacob Vosmaer's avatar Jacob Vosmaer

Run "go fmt" for Kamil

parent b912293a
......@@ -11,8 +11,8 @@ import (
"net/http"
"os"
"os/exec"
"syscall"
"path"
"syscall"
)
func fail500(w http.ResponseWriter, err error) {
......
......@@ -7,12 +7,12 @@ In this file we handle request routing and interaction with the authBackend.
package main
import (
"fmt"
"log"
"net/http"
"net/http/httputil"
"net/url"
"strings"
"fmt"
)
type serviceHandleFunc func(w http.ResponseWriter, r *gitRequest)
......@@ -27,29 +27,29 @@ type upstream struct {
type authorizationResponse struct {
// GL_ID is an environment variable used by gitlab-shell hooks during 'git
// push' and 'git pull'
GL_ID string
GL_ID string
// RepoPath is the full path on disk to the Git repository the request is
// about
RepoPath string
RepoPath string
// ArchivePath is the full path where we should find/create a cached copy
// of a requested archive
ArchivePath string
ArchivePath string
// ArchivePrefix is used to put extracted archive contents in a
// subdirectory
ArchivePrefix string
// CommitId is used do prevent race conditions between the 'time of check'
// in the GitLab Rails app and the 'time of use' in gitlab-workhorse.
CommitId string
CommitId string
// StoreLFSPath is provided by the GitLab Rails application
// to mark where the tmp file should be placed
StoreLFSPath string
StoreLFSPath string
// LFS object id
LfsOid string
LfsOid string
// LFS object size
LfsSize int64
LfsSize int64
// TmpPath is the path where we should store temporary files
// This is set by authorization middleware
TempPath string
TempPath string
}
// A gitRequest is an *http.Request decorated with attributes returned by the
......@@ -57,7 +57,7 @@ type authorizationResponse struct {
type gitRequest struct {
*http.Request
authorizationResponse
u *upstream
u *upstream
// This field contains the URL.Path stripped from RelativeUrlRoot
relativeURIPath string
......
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