Rename NewPluginServer to just Serve

This commit is contained in:
Brian Kassouf 2017-05-02 02:00:39 -07:00
parent f17c50108f
commit c8bbea9f37
4 changed files with 5 additions and 5 deletions

View file

@ -7,10 +7,10 @@ import (
"github.com/hashicorp/vault/helper/pluginutil"
)
// NewPluginServer is called from within a plugin and wraps the provided
// Serve is called from within a plugin and wraps the provided
// Database implementation in a databasePluginRPCServer object and starts a
// RPC server.
func NewPluginServer(db Database) {
func Serve(db Database) {
dbPlugin := &DatabasePlugin{
impl: db,
}

View file

@ -45,7 +45,7 @@ func Run() error {
return err
}
dbplugin.NewPluginServer(dbType.(*MSSQL))
dbplugin.Serve(dbType.(*MSSQL))
return nil
}

View file

@ -48,7 +48,7 @@ func Run() error {
return err
}
dbplugin.NewPluginServer(dbType.(*MySQL))
dbplugin.Serve(dbType.(*MySQL))
return nil
}

View file

@ -41,7 +41,7 @@ func Run() error {
return err
}
dbplugin.NewPluginServer(dbType.(*PostgreSQL))
dbplugin.Serve(dbType.(*PostgreSQL))
return nil
}