testdriver

package
v3.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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) Publish

func (r *Connection) Publish(_ context.Context, _ string, _ interface{}, _ string) 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL