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
@@ -10,7 +10,7 @@ import (
_ "github.com/go-sql-driver/mysql"
"github.com/localhots/bocadillo/binlog"
"github.com/localhots/bocadillo/mysql/slave"
"github.com/localhots/bocadillo/mysql/driver"
"github.com/localhots/bocadillo/reader"
)
@@ -46,7 +46,7 @@ func TestMain(m *testing.M) {
os.Exit(exitCode)
}
func getConfig() (dsn string, conf slave.Config) {
func getConfig() (dsn string, conf driver.Config) {
envOrDefault := func(name, def string) string {
if val := os.Getenv(name); val != "" {
return val