Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SHA256 scram.HashGeneratorFcn = sha256.New
SHA256 exporting for SASL based auth
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 WithDLQTopics ¶
func WithDLQTopics(topicList kafka.ConsumerTopicList) ConsumerOption
WithDLQTopics creates a range consumer for the specified consumer DLQ topics.
func WithRetryTopics ¶
func WithRetryTopics(topicList kafka.ConsumerTopicList) ConsumerOption
WithRetryTopics creates a consumer for the specified consumer Retry topics.
type ScramClient ¶ added in v1.0.0
type ScramClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
ScramClient is used for SASL based auth This is mainly a wrapper to satisfy sarama
func (*ScramClient) Begin ¶ added in v1.0.0
func (x *ScramClient) Begin(userName, password, authzID string) (err error)
Begin is used for SASL
Click to show internal directories.
Click to hide internal directories.