Rename server to proxy

This commit is contained in:
9seconds
2018-05-31 09:54:20 +03:00
parent 83b46d1b80
commit 588e406978
7 changed files with 8 additions and 9 deletions
+2 -3
View File
@@ -11,11 +11,10 @@ import (
"strconv"
"strings"
"github.com/9seconds/mtg/proxy"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
kingpin "gopkg.in/alecthomas/kingpin.v2"
"github.com/9seconds/mtg/server"
)
var (
@@ -96,7 +95,7 @@ func main() {
)).Sugar()
printURLs()
srv := server.NewServer(*bindIP, int(*bindPort), secretBytes, logger,
srv := proxy.NewServer(*bindIP, int(*bindPort), secretBytes, logger,
*readTimeout, *writeTimeout)
if err := srv.Serve(); err != nil {
logger.Fatal(err.Error())
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"bytes"
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"context"
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"io"
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"context"
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"net"
+1 -1
View File
@@ -1,4 +1,4 @@
package server
package proxy
import (
"io"