Skip to content

Commit

Permalink
refactoring, can not run now
Browse files Browse the repository at this point in the history
  • Loading branch information
siddontang committed Jul 11, 2014
1 parent 405cac9 commit 957a9ee
Show file tree
Hide file tree
Showing 39 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ fi

source ./dev.env

go get github.com/siddontang/golib/log
go get -u github.com/siddontang/go-log/log
15 changes: 15 additions & 0 deletions cmd/mixer_server/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import (
"flag"
"github.com/siddontang/mixer/server"
)

var config = flag.String("config", "/etc/mixer.json", "config directory")

func main() {
flag.Parse()

s := server.NewServer(*config)
s.Start()
}
2 changes: 1 addition & 1 deletion dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ "$VTTOP" == "${VTTOP/\/src\/github.com\/siddontang\/mixer/}" ]]; then
echo "WARNING: VTTOP($VTTOP) does not contain src/github.com/siddontang/mixer"
fi

export GOTOP=$VTTOP/go
export GOTOP=$VTTOP

function prepend_path()
{
Expand Down
File renamed without changes.
15 changes: 0 additions & 15 deletions go/cmd/mxproxy/main.go

This file was deleted.

8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
all: build

build:
go install ./go/...
go install ./...

clean:
go clean -i ./go/...
go clean -i ./...

test:
go test ./go/...
go test -race ./go/...
go test ./...
go test -race ./...
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion go/proxy/config.go → server/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxy
package server

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion go/proxy/config_test.go → server/config_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxy
package server

import (
"testing"
Expand Down
6 changes: 3 additions & 3 deletions go/proxy/conn.go → server/conn.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package proxy
package server

import (
"bytes"
"encoding/binary"
"fmt"
"github.com/siddontang/golib/log"
. "github.com/siddontang/mixer/go/mysql"
"github.com/siddontang/go-log/log"
. "github.com/siddontang/mixer/mysql"
"net"
"runtime"
"sync"
Expand Down
4 changes: 2 additions & 2 deletions go/proxy/conn_test.go → server/conn_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proxy
package server

import (
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/mysql"
"testing"
)

Expand Down
8 changes: 4 additions & 4 deletions go/proxy/connquery.go → server/connquery.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package proxy
package server

import (
"errors"
"fmt"
"github.com/siddontang/golib/log"
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/go/parser"
"github.com/siddontang/go-log/log"
. "github.com/siddontang/mixer/mysql"
. "github.com/siddontang/mixer/parser"
"strings"
)

Expand Down
8 changes: 4 additions & 4 deletions go/proxy/connselect.go → server/connselect.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package proxy
package server

import (
"errors"
"fmt"
"github.com/siddontang/golib/log"
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/go/parser"
"github.com/siddontang/go-log/log"
. "github.com/siddontang/mixer/mysql"
. "github.com/siddontang/mixer/parser"
"strconv"
"strings"
)
Expand Down
6 changes: 3 additions & 3 deletions go/proxy/connset.go → server/connset.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package proxy
package server

import (
"fmt"
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/go/parser"
. "github.com/siddontang/mixer/mysql"
. "github.com/siddontang/mixer/parser"
"strconv"
"strings"
)
Expand Down
8 changes: 4 additions & 4 deletions go/proxy/connstmt.go → server/connstmt.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package proxy
package server

import (
"encoding/binary"
"fmt"
"github.com/siddontang/golib/log"
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/go/parser"
"github.com/siddontang/go-log/log"
. "github.com/siddontang/mixer/mysql"
. "github.com/siddontang/mixer/parser"
"math"
"strconv"
)
Expand Down
2 changes: 1 addition & 1 deletion go/proxy/connstmt_test.go → server/connstmt_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxy
package server

import (
"testing"
Expand Down
6 changes: 3 additions & 3 deletions go/proxy/node.go → server/node.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package proxy
package server

import (
"container/list"
"fmt"
"github.com/siddontang/golib/log"
. "github.com/siddontang/mixer/go/mysql"
"github.com/siddontang/go-log/log"
. "github.com/siddontang/mixer/mysql"
"strings"
"sync"
"time"
Expand Down
4 changes: 2 additions & 2 deletions go/proxy/schema.go → server/schema.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package proxy
package server

import (
"fmt"
. "github.com/siddontang/mixer/go/parser"
. "github.com/siddontang/mixer/parser"
)

type schema struct {
Expand Down
4 changes: 2 additions & 2 deletions go/proxy/server.go → server/server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proxy
package server

import (
"github.com/siddontang/golib/log"
"github.com/siddontang/go-log/log"
"net"
"runtime"
)
Expand Down
4 changes: 2 additions & 2 deletions go/proxy/server_test.go → server/server_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package proxy
package server

import (
. "github.com/siddontang/mixer/go/mysql"
. "github.com/siddontang/mixer/mysql"
"sync"
"testing"
"time"
Expand Down

0 comments on commit 957a9ee

Please sign in to comment.