refactor: more sensible field order

This commit is contained in:
Matthias Radestock committed 2015-06-08 21:57:49 +01:00
1 parent 235acc16f6
commit f9c325c793
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -13,8 +13,8 @@ import (
type createContainerInterceptor struct {
client *docker.Client
withDNS bool
dockerBridgeIP string
withDNS bool
withIPAM bool
}
+1 -1
View File
@@ -89,7 +89,7 @@ func (proxy *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
path := r.URL.Path
switch {
case containerCreateRegexp.MatchString(path):
proxy.serveWithInterceptor(&createContainerInterceptor{proxy.client, proxy.WithDNS, proxy.dockerBridgeIP, proxy.WithIPAM}, w, r)
proxy.serveWithInterceptor(&createContainerInterceptor{proxy.client, proxy.dockerBridgeIP, proxy.WithDNS, proxy.WithIPAM}, w, r)
case containerStartRegexp.MatchString(path):
proxy.serveWithInterceptor(&startContainerInterceptor{proxy.client, proxy.WithDNS, proxy.WithIPAM}, w, r)
case execCreateRegexp.MatchString(path):