Documentation
¶
Index ¶
- Constants
- Variables
- type Connection
- func (r *Connection) CloseConnection(connectionName string) error
- func (r *Connection) CreateConnection(_ context.Context, connectionName string, config interface{}) error
- func (r *Connection) Publish(_ context.Context, _ string, _ interface{}, _ string) error
- func (r *Connection) UpdateConnection(_ context.Context, connectionName string, config interface{}) error
- type FakeConnection
Constants ¶
View Source
const Name = "testdriver"
Variables ¶
View Source
var FakeConn = &Connection{ openConnections: make(map[string]FakeConnection), }
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection represents driver to use testdriver.
func (*Connection) CloseConnection ¶
func (r *Connection) CloseConnection(connectionName string) error
func (*Connection) CreateConnection ¶
func (r *Connection) CreateConnection(_ context.Context, connectionName string, config interface{}) error
func (*Connection) UpdateConnection ¶
func (r *Connection) UpdateConnection(_ context.Context, connectionName string, config interface{}) error
type FakeConnection ¶
type FakeConnection struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.