Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Check ¶
Check returns (true,nil) when the provided data matches the actual data Check returns (false,nil) when the provided data does not match the actual data Check returns (false,error) if an error occurred while determining whether data matches. Check will never return (true,error) Check swallows sql.ErrNoRow
Check uses a transaction block, even though it's only performing reads because that's the only way to ensure that all commands are executed on the same connection. See https://github.com/go-sql-driver/mysql/issues/208
type ConnectionFactory ¶
type ConnectionFactory struct { OpenConn func(dsn string) (*sql.DB, error) // contains filtered or unexported fields }
func NewConnectionFactoryFromConfig ¶
func NewConnectionFactoryFromConfig( c *config.Config, switchboardClients []SwitchboardClient, logger lager.Logger, ) *ConnectionFactory
func (*ConnectionFactory) Conns ¶
func (c *ConnectionFactory) Conns() ([]*models.NamedConnection, error)
func (*ConnectionFactory) WriteConn ¶
func (c *ConnectionFactory) WriteConn() (*models.NamedConnection, error)
type SwitchboardClient ¶
Click to show internal directories.
Click to hide internal directories.