Documentation ¶
Overview ¶
* This is local copy of testcontainers/testcontainers/go/modules/kafka/kafka.go with modified startup script for * the purpose of fully working demonstration. See https://github.com/testcontainers/testcontainers-go/issues/2630
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithClusterID ¶
func WithClusterID(clusterID string) testcontainers.CustomizeRequestOption
Types ¶
type KafkaContainer ¶
KafkaContainer represents the Kafka container type used in the module
func Run ¶
func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*KafkaContainer, error)
Run creates an instance of the Kafka container type
func RunContainer
deprecated
func RunContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*KafkaContainer, error)
Deprecated: use Run instead RunContainer creates an instance of the Kafka container type
type Option ¶
type Option func(*KafkaContainer) error
Option represents an option to pass to the KafkaContainer.
func WithListener ¶
WithListener allows declaring addition listener
Click to show internal directories.
Click to hide internal directories.