Skip to content

Commit 2a68c0e

Browse files
authored
Merge pull request go-mysql-org#571 from lance6716/change-module-name
2 parents 63108f6 + 7153c75 commit 2a68c0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+86
-84
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You can use it as a MySQL slave to sync binlog from master then do something, li
3636

3737
```go
3838
import (
39-
"github.com/siddontang/go-mysql/replication"
39+
"github.com/go-mysql-org/go-mysql/replication"
4040
"os"
4141
)
4242
// Create a binlog syncer with a unique server id, the server id must be different from other MySQL's.
@@ -124,7 +124,7 @@ package main
124124

125125
import (
126126
"github.com/siddontang/go-log/log"
127-
"github.com/siddontang/go-mysql/canal"
127+
"github.com/go-mysql-org/go-mysql/canal"
128128
)
129129

130130
type MyEventHandler struct {
@@ -171,7 +171,7 @@ Client package supports a simple MySQL connection driver which you can use it to
171171

172172
```go
173173
import (
174-
"github.com/siddontang/go-mysql/client"
174+
"github.com/go-mysql-org/go-mysql/client"
175175
)
176176

177177
// Connect MySQL at 127.0.0.1:3306, with user root, an empty password and database test
@@ -253,7 +253,7 @@ so that most MySQL clients should be able to connect to the Server without modif
253253

254254
```go
255255
import (
256-
"github.com/siddontang/go-mysql/server"
256+
"github.com/go-mysql-org/go-mysql/server"
257257
"net"
258258
)
259259

@@ -307,7 +307,7 @@ package main
307307
import (
308308
"database/sql"
309309

310-
_ "github.com/siddontang/go-mysql/driver"
310+
_ "github.com/go-mysql-org/go-mysql/driver"
311311
)
312312

313313
func main() {

canal/canal.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import (
1212
"sync/atomic"
1313
"time"
1414

15+
"github.com/go-mysql-org/go-mysql/client"
16+
"github.com/go-mysql-org/go-mysql/dump"
17+
"github.com/go-mysql-org/go-mysql/mysql"
18+
"github.com/go-mysql-org/go-mysql/replication"
19+
"github.com/go-mysql-org/go-mysql/schema"
1520
"github.com/pingcap/errors"
1621
"github.com/pingcap/parser"
1722
"github.com/siddontang/go-log/log"
18-
"github.com/siddontang/go-mysql/client"
19-
"github.com/siddontang/go-mysql/dump"
20-
"github.com/siddontang/go-mysql/mysql"
21-
"github.com/siddontang/go-mysql/replication"
22-
"github.com/siddontang/go-mysql/schema"
2323
)
2424

2525
// Canal can sync your MySQL data into everywhere, like Elasticsearch, Redis, etc...

canal/canal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66
"testing"
77
"time"
88

9+
"github.com/go-mysql-org/go-mysql/mysql"
10+
"github.com/go-mysql-org/go-mysql/replication"
911
. "github.com/pingcap/check"
1012
"github.com/pingcap/errors"
1113
"github.com/pingcap/parser"
1214
"github.com/siddontang/go-log/log"
13-
"github.com/siddontang/go-mysql/mysql"
14-
"github.com/siddontang/go-mysql/replication"
1515
)
1616

1717
var testHost = flag.String("host", "127.0.0.1", "MySQL host")

canal/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"time"
88

99
"github.com/BurntSushi/toml"
10+
"github.com/go-mysql-org/go-mysql/mysql"
1011
"github.com/pingcap/errors"
11-
"github.com/siddontang/go-mysql/mysql"
1212
)
1313

1414
type DumpConfig struct {

canal/dump.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"strings"
88
"time"
99

10+
"github.com/go-mysql-org/go-mysql/mysql"
11+
"github.com/go-mysql-org/go-mysql/schema"
1012
"github.com/pingcap/errors"
1113
"github.com/shopspring/decimal"
1214
"github.com/siddontang/go-log/log"
13-
"github.com/siddontang/go-mysql/mysql"
14-
"github.com/siddontang/go-mysql/schema"
1515
)
1616

1717
type dumpParseHandler struct {

canal/handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package canal
22

33
import (
4-
"github.com/siddontang/go-mysql/mysql"
5-
"github.com/siddontang/go-mysql/replication"
4+
"github.com/go-mysql-org/go-mysql/mysql"
5+
"github.com/go-mysql-org/go-mysql/replication"
66
)
77

88
type EventHandler interface {

canal/master.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package canal
33
import (
44
"sync"
55

6+
"github.com/go-mysql-org/go-mysql/mysql"
67
"github.com/siddontang/go-log/log"
7-
"github.com/siddontang/go-mysql/mysql"
88
)
99

1010
type masterInfo struct {

canal/rows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package canal
33
import (
44
"fmt"
55

6-
"github.com/siddontang/go-mysql/replication"
7-
"github.com/siddontang/go-mysql/schema"
6+
"github.com/go-mysql-org/go-mysql/replication"
7+
"github.com/go-mysql-org/go-mysql/schema"
88
)
99

1010
// The action name for sync.

canal/sync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import (
55
"sync/atomic"
66
"time"
77

8+
"github.com/go-mysql-org/go-mysql/mysql"
9+
"github.com/go-mysql-org/go-mysql/replication"
10+
"github.com/go-mysql-org/go-mysql/schema"
811
"github.com/pingcap/errors"
912
"github.com/pingcap/parser/ast"
1013
uuid "github.com/satori/go.uuid"
1114
"github.com/siddontang/go-log/log"
12-
"github.com/siddontang/go-mysql/mysql"
13-
"github.com/siddontang/go-mysql/replication"
14-
"github.com/siddontang/go-mysql/schema"
1515
)
1616

1717
func (c *Canal) startSyncer() (*replication.BinlogStreamer, error) {

client/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"encoding/binary"
77
"fmt"
88

9+
. "github.com/go-mysql-org/go-mysql/mysql"
10+
"github.com/go-mysql-org/go-mysql/packet"
911
"github.com/pingcap/errors"
10-
. "github.com/siddontang/go-mysql/mysql"
11-
"github.com/siddontang/go-mysql/packet"
1212
)
1313

1414
const defaultAuthPluginName = AUTH_NATIVE_PASSWORD

0 commit comments

Comments
 (0)