Documentation
¶
Index ¶
Constants ¶
View Source
const ( // StarRocksVersion is the StarRocks version used for testing StarRocksVersion = "4.0.3" // StarRocksImage is the Docker image for StarRocks all-in-one container StarRocksImage = "starrocks/allin1-ubuntu:" + StarRocksVersion )
Variables ¶
This section is empty.
Functions ¶
func StartWithData ¶
StartWithData starts a StarRocks container and initializes it with test tables. Returns DSN for connecting to the container.
Types ¶
type StarRocksInfo ¶
type StarRocksInfo struct {
DSN string // MySQL protocol DSN (port 9030)
FEHTTPAddr string // FE HTTP address for Stream Load (port 8030)
BEHTTPAddr string // BE HTTP address for Stream Load redirect (port 8040)
}
StarRocksInfo contains connection info for a StarRocks container
func Start ¶
func Start(t TestingT) StarRocksInfo
Start starts a StarRocks all-in-one container for testing. It returns connection info for the container. The container is automatically terminated when the test ends.
Click to show internal directories.
Click to hide internal directories.