Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestActiveMQ ¶ added in v0.3.22
type TestActiveMQ struct {
Container testcontainers.Container
// Addr is the STOMP endpoint in "host:port" format.
Addr string
Username string
Password string
}
TestActiveMQ holds the running testcontainer and the STOMP connection address for the test ActiveMQ broker.
func SetupTestActiveMQ ¶ added in v0.3.22
func SetupTestActiveMQ(ctx context.Context) (*TestActiveMQ, error)
SetupTestActiveMQ starts an Apache ActiveMQ Classic container and returns a TestActiveMQ whose Addr field points to the broker's STOMP port.
type TestPostgres ¶
type TestPostgres struct {
Container testcontainers.Container
DB *sql.DB
}
func SetupTestPostgres ¶
func SetupTestPostgres(ctx context.Context) (*TestPostgres, error)
Click to show internal directories.
Click to hide internal directories.