Rename slave package to driver

The package contains driver code that was supplemented with additional slave commands.
This commit is contained in:
2019-10-28 19:32:35 +01:00
parent 05009b19d7
commit 610336a34e
37 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import (
"time"
"github.com/juju/errors"
"github.com/localhots/bocadillo/mysql/slave"
"github.com/localhots/bocadillo/mysql/driver"
"github.com/localhots/bocadillo/reader"
)
@@ -27,7 +27,7 @@ func main() {
validate((*id != 0), "Server ID is not set")
validate((*file != ""), "Binary log file is not set")
reader, err := reader.New(*dsn, slave.Config{
reader, err := reader.New(*dsn, driver.Config{
ServerID: uint32(*id),
File: *file,
Offset: uint32(*offset),