testdriver

package
v3.21.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = "testdriver"
	ErrName = "testdriver-error"
)

Variables

View Source
var FakeConn = &Connection{
	openConnections: make(map[string]FakeConnection),
}
View Source
var FakeErrConn = &ErrConnection{
	openErrConnections: make(map[string]FakeErrConnection),
}

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 ErrConnection added in v3.20.0

type ErrConnection struct {
	// contains filtered or unexported fields
}

ErrConnection represents driver to use testdriver.

func (*ErrConnection) CloseConnection added in v3.20.0

func (r *ErrConnection) CloseConnection(connectionName string) error

func (*ErrConnection) CreateConnection added in v3.20.0

func (r *ErrConnection) CreateConnection(_ context.Context, connectionName string, config interface{}) error

func (*ErrConnection) Publish added in v3.20.0

func (r *ErrConnection) Publish(_ context.Context, _ string, _ interface{}, _ string) error

func (*ErrConnection) UpdateConnection added in v3.20.0

func (r *ErrConnection) UpdateConnection(_ context.Context, connectionName string, config interface{}) error

type FakeConnection

type FakeConnection struct {
	// contains filtered or unexported fields
}

type FakeErrConnection added in v3.20.0

type FakeErrConnection struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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