You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server.go
+28-12Lines changed: 28 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
package main
2
2
3
3
import (
4
-
"./actions"
5
-
"./metrics"
6
-
"./proxy"
7
-
"./server"
8
4
"fmt"
9
-
"github.com/gorilla/mux"
10
-
"github.com/prometheus/client_golang/prometheus"
11
5
"net/http"
12
6
"os"
13
7
"strconv"
14
8
"strings"
15
9
"time"
10
+
11
+
"./actions"
12
+
"./metrics"
13
+
"./proxy"
14
+
"./server"
15
+
"github.com/gorilla/mux"
16
+
"github.com/prometheus/client_golang/prometheus"
16
17
)
17
18
18
19
// Server defines interface used for creating DFP Web server
@@ -22,10 +23,11 @@ type Server interface {
22
23
}
23
24
24
25
typeservestruct {
25
-
IPstring`short:"i" long:"ip" default:"0.0.0.0" env:"IP" description:"IP the server listens to."`
26
-
ListenerAddressstring`short:"l" long:"listener-address" env:"LISTENER_ADDRESS" description:"The address of the Docker Flow: Swarm Listener. The address matches the name of the Swarm service (e.g. swarm-listener)"`
27
-
Portstring`short:"p" long:"port" default:"8080" env:"PORT" description:"Port the server listens to."`
28
-
ServiceNamestring`short:"n" long:"service-name" default:"proxy" env:"SERVICE_NAME" description:"The name of the proxy service. It is used only when running in 'swarm' mode and must match the '--name' parameter used to launch the service."`
26
+
IPstring`short:"i" long:"ip" default:"0.0.0.0" env:"IP" description:"IP the server listens to."`
27
+
ListenerAddressstring`short:"l" long:"listener-address" env:"LISTENER_ADDRESS" description:"The address of the Docker Flow: Swarm Listener. The address matches the name of the Swarm service (e.g. swarm-listener)"`
28
+
Portstring`short:"p" long:"port" default:"8080" env:"PORT" description:"Port the server listens to."`
29
+
ServiceNamestring`short:"n" long:"service-name" default:"proxy" env:"SERVICE_NAME" description:"The name of the proxy service. It is used only when running in 'swarm' mode and must match the '--name' parameter used to launch the service."`
0 commit comments