bustest

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Docker

func Docker(t testing.TB) dockertest.Pool

func RegisterServer

func RegisterServer(name string, fnc ServerFunc)

func TestAll

func TestAll(t *testing.T, test func(t *testing.T, bus Connect))

Types

type Connect added in v0.7.6

type Connect func(t testing.TB, opts ...bus.BusOption) bus.MessageBus

type Server

type Server interface {
	Connect(t testing.TB, opts ...bus.BusOption) bus.MessageBus
}

func NewLocalBus

func NewLocalBus() Server

func NewNATS

func NewNATS(t testing.TB, pool dockertest.Pool) Server

func NewRedis

func NewRedis(t testing.TB, pool dockertest.Pool) Server

type ServerFunc

type ServerFunc func(t testing.TB, pool dockertest.Pool) Server

Jump to

Keyboard shortcuts

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