This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
mysql.NewAuthServerStatic does not implement auth.Auth interface #622
Closed
Description
Hello,
The following code extracted from the README.md does not compile:
auth := mysql.NewAuthServerStatic()
auth.Entries["user"] = []*mysql.AuthServerStaticEntry{{
Password: "pass",
}}
config := server.Config{
Protocol: "tcp",
Address: "localhost:3306",
Auth: auth,
}
The error is produced because the function gopkg.in/src-d/go-vitess.v1/mysql.NewAuthServerStatic()
does not implement gopkg.in/src-d/go-mysql-server.v0/auth
.
Thanks.