Browse Source

Merge pull request #1182 from coreos/cors

pkg: move cors.go to /pkg/cors.go
Xiang Li 11 years ago
parent
commit
9e46d54483
2 changed files with 5 additions and 5 deletions
  1. 4 4
      main.go
  2. 1 1
      pkg/cors.go

+ 4 - 4
main.go

@@ -45,7 +45,7 @@ var (
 
 	peers     = &etcdhttp.Peers{}
 	addrs     = &Addrs{}
-	cors      = &CORSInfo{}
+	cors      = &pkg.CORSInfo{}
 	proxyFlag = new(ProxyFlag)
 
 	proxyFlagValues = []string{
@@ -208,11 +208,11 @@ func startEtcd() {
 	}
 	s.Start()
 
-	ch := &CORSHandler{
+	ch := &pkg.CORSHandler{
 		Handler: etcdhttp.NewClientHandler(s, *peers, *timeout),
 		Info:    cors,
 	}
-	ph := &CORSHandler{
+	ph := &pkg.CORSHandler{
 		Handler: etcdhttp.NewPeerHandler(s),
 		Info:    cors,
 	}
@@ -255,7 +255,7 @@ func startProxy() {
 		log.Fatal(err)
 	}
 
-	ph = &CORSHandler{
+	ph = &pkg.CORSHandler{
 		Handler: ph,
 		Info:    cors,
 	}

+ 1 - 1
cors.go → pkg/cors.go

@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
-package main
+package pkg
 
 import (
 	"fmt"