git » gofer » commit 0dee70a

Rename proxy -> server

author Alberto Bertogli
2020-06-01 21:07:03 UTC
committer Alberto Bertogli
2020-06-01 21:07:03 UTC
parent 9290b001ba6f47e1ab86dc2aec388e0319b193d9

Rename proxy -> server

Now that gofer can do more than proxy, rename the module to avoid
confusion.

gofer.go +4 -4
{proxy => server}/http.go +1 -1
{proxy => server}/raw.go +1 -1
proxy/proxy_test.go => server/server_test.go +1 -1
{proxy => server}/testdata/hola +0 -0

diff --git a/gofer.go b/gofer.go
index cf5cf6c..bc1c82b 100644
--- a/gofer.go
+++ b/gofer.go
@@ -6,7 +6,7 @@ import (
 
 	"blitiri.com.ar/go/gofer/config"
 	"blitiri.com.ar/go/gofer/debug"
-	"blitiri.com.ar/go/gofer/proxy"
+	"blitiri.com.ar/go/gofer/server"
 	"blitiri.com.ar/go/log"
 )
 
@@ -25,15 +25,15 @@ func main() {
 	}
 
 	for addr, https := range conf.HTTPS {
-		go proxy.HTTPS(addr, https)
+		go server.HTTPS(addr, https)
 	}
 
 	for addr, http := range conf.HTTP {
-		go proxy.HTTP(addr, http)
+		go server.HTTP(addr, http)
 	}
 
 	for addr, raw := range conf.Raw {
-		go proxy.Raw(addr, raw)
+		go server.Raw(addr, raw)
 	}
 
 	if conf.ControlAddr != "" {
diff --git a/proxy/http.go b/server/http.go
similarity index 99%
rename from proxy/http.go
rename to server/http.go
index 4527efa..b120122 100644
--- a/proxy/http.go
+++ b/server/http.go
@@ -1,4 +1,4 @@
-package proxy
+package server
 
 import (
 	"context"
diff --git a/proxy/raw.go b/server/raw.go
similarity index 99%
rename from proxy/raw.go
rename to server/raw.go
index 29e2be0..067ab25 100644
--- a/proxy/raw.go
+++ b/server/raw.go
@@ -1,4 +1,4 @@
-package proxy
+package server
 
 import (
 	"crypto/tls"
diff --git a/proxy/proxy_test.go b/server/server_test.go
similarity index 99%
rename from proxy/proxy_test.go
rename to server/server_test.go
index 8ce5132..a9574c1 100644
--- a/proxy/proxy_test.go
+++ b/server/server_test.go
@@ -1,4 +1,4 @@
-package proxy
+package server
 
 import (
 	"fmt"
diff --git a/proxy/testdata/hola b/server/testdata/hola
similarity index 100%
rename from proxy/testdata/hola
rename to server/testdata/hola