Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // NewConsumer returns a new instance of kafka consumer. NewConsumer(config *kafka.ConsumerConfig, consumerOpts ...ConsumerOption) (kafka.Consumer, error) }
Client refers to the kafka client. Serves as the entry point to producing or consuming messages from kafka
type ConsumerOption ¶
type ConsumerOption interface {
// contains filtered or unexported methods
}
ConsumerOption is the type for optional arguments to the NewConsumer constructor.
func WithAdditionalOptions ¶ added in v0.2.3
func WithAdditionalOptions(interval time.Duration) ConsumerOption
func WithClientID ¶ added in v0.2.2
func WithClientID(clientID string) ConsumerOption
WithClientID sets client id.
func WithDLQTopics ¶ added in v0.1.3
func WithDLQTopics(topicList kafka.ConsumerTopicList) ConsumerOption
WithDLQTopics creates a range consumer for the specified consumer DLQ topics.
func WithRetryTopics ¶ added in v0.1.3
func WithRetryTopics(topicList kafka.ConsumerTopicList) ConsumerOption
WithRetryTopics creates a consumer for the specified consumer Retry topics.
Click to show internal directories.
Click to hide internal directories.