Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClickHouseClusterContainerNoShards ¶
type ClickHouseClusterContainerNoShards struct {
Container testcontainers.Container
Compose *testcontainers.LocalDockerCompose
Context context.Context
Cluster string
Hosts []string
HostsHTTP []string
Database string
}
ClickHouseClusterContainerNoShards is a ClickHouse testcontainer
func NewClickHouseClusterContainerNoShards ¶
func NewClickHouseClusterContainerNoShards(ctx context.Context) (*ClickHouseClusterContainerNoShards, error)
ClickHouseClusterContainerNoShards creates new Clickhouse test container if CH_TEST_PORT is not defined. Otherwise uses db at defined port. This logic is required for running test at CI environment
func (*ClickHouseClusterContainerNoShards) Close ¶
func (ch *ClickHouseClusterContainerNoShards) Close() error
Close terminates underlying docker container
Click to show internal directories.
Click to hide internal directories.