Versions in this module Expand all Collapse all v0 v0.7.1 May 5, 2017 Changes in this version + func Serve(db Database, tlsProvider func() (*tls.Config, error)) + type CreateUserRequest struct + Expiration time.Time + Statements Statements + UsernamePrefix string + type CreateUserResponse struct + Password string + Username string + type Database interface + Close func() error + CreateUser func(statements Statements, usernamePrefix string, expiration time.Time) (username string, password string, err error) + Initialize func(config map[string]interface{}, verifyConnection bool) error + RenewUser func(statements Statements, username string, expiration time.Time) error + RevokeUser func(statements Statements, username string) error + Type func() (string, error) + func PluginFactory(pluginName string, sys pluginutil.LookRunnerUtil, logger log.Logger) (Database, error) + type DatabasePlugin struct + func (DatabasePlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (d DatabasePlugin) Server(*plugin.MuxBroker) (interface{}, error) + type DatabasePluginClient struct + func (dc *DatabasePluginClient) Close() error + func (dr DatabasePluginClient) CreateUser(statements Statements, usernamePrefix string, expiration time.Time) (username string, password string, err error) + func (dr DatabasePluginClient) Initialize(conf map[string]interface{}, verifyConnection bool) error + func (dr DatabasePluginClient) RenewUser(statements Statements, username string, expiration time.Time) error + func (dr DatabasePluginClient) RevokeUser(statements Statements, username string) error + func (dr DatabasePluginClient) Type() (string, error) + type InitializeRequest struct + Config map[string]interface{} + VerifyConnection bool + type RenewUserRequest struct + Expiration time.Time + Statements Statements + Username string + type RevokeUserRequest struct + Statements Statements + Username string + type Statements struct + CreationStatements string + RenewStatements string + RevocationStatements string + RollbackStatements string