Documentation ¶
Index ¶
- type Consumer
- type ConsumerOptions
- type ContainerConnectionConfig
- func StartKafkaContainer(ctx context.Context, options ContainerOptions) (testcontainers.Container, *ContainerConnectionConfig, testcontainers.Container, ...)
- func StartStandaloneKafkaContainer(ctx context.Context, options ContainerOptions) (testcontainers.Container, *ContainerConnectionConfig, error)
- type ContainerOptions
- type Producer
- type ProducerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Messages chan *sarama.ConsumerMessage // contains filtered or unexported fields }
Consumer ...
func ConsumeGroup ¶
ConsumeGroup ...
func (*Consumer) Cleanup ¶
func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error
Cleanup ...
func (*Consumer) ConsumeClaim ¶
func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim ...
type ConsumerOptions ¶
ConsumerOptions ...
type ContainerConnectionConfig ¶ added in v0.1.5
type ContainerConnectionConfig struct { tc.ContainerConfig Brokers []string KafkaVersion string }
ContainerConnectionConfig ...
func StartKafkaContainer ¶ added in v0.1.5
func StartKafkaContainer(ctx context.Context, options ContainerOptions) (testcontainers.Container, *ContainerConnectionConfig, testcontainers.Container, testcontainers.Network, error)
StartKafkaContainer ...
func StartStandaloneKafkaContainer ¶ added in v0.1.5
func StartStandaloneKafkaContainer(ctx context.Context, options ContainerOptions) (testcontainers.Container, *ContainerConnectionConfig, error)
StartStandaloneKafkaContainer ...
type ContainerOptions ¶ added in v0.1.5
type ContainerOptions struct { tc.ContainerOptions StartZookeeper bool }
ContainerOptions ...
type Producer ¶
type Producer struct { DataCollector sarama.SyncProducer AccessLogProducer sarama.AsyncProducer }
Producer ...
func CreateProducer ¶
func CreateProducer(ctx context.Context, options ProducerOptions) (*Producer, error)
CreateProducer ...
Click to show internal directories.
Click to hide internal directories.