Rename NewPluginServer to just Serve
This commit is contained in:
parent
f17c50108f
commit
c8bbea9f37
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ func Run() error {
|
|||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*MSSQL))
|
||||
dbplugin.Serve(dbType.(*MSSQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ func Run() error {
|
|||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*MySQL))
|
||||
dbplugin.Serve(dbType.(*MySQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ func Run() error {
|
|||
return err
|
||||
}
|
||||
|
||||
dbplugin.NewPluginServer(dbType.(*PostgreSQL))
|
||||
dbplugin.Serve(dbType.(*PostgreSQL))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue