Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶ added in v0.2.1
func DefaultConfig() *kafka.Writer
DefaultConfig returns the default configuration for a Kafka writer.
Types ¶
type Opt ¶
type Opt func(*kafka.Writer)
Opt defines an option for a Kafka writer.
func WithBalancer ¶
func WithBalancer(b kafka.Balancer) Opt
WithBalancer configures the balancing mechanism for the writer.
func WithBatchSize ¶
WithBatchSize configures the batch size for the writer.
func WithBatchTimeout ¶
WithBatchTimeout configures the batch timeout for the writer.
func WithBrokers ¶
WithBrokers configures the brokers for the writer.
func WithTransport ¶
func WithTransport(transport *kafka.Transport) Opt
WithTransport configures the transport for the writer.
Click to show internal directories.
Click to hide internal directories.