Documentation
¶
Index ¶
- Constants
- func GetFranzConfig(kfkCfg *config.KafkaConfig) (opts []kgo.Opt, err error)
- func Leave(consumerId string)
- func NewConsumerPoller(consumerId, consumerName string, client *kgo.Client)
- func OnConsumerPoll(consumerId string)
- func Walk(maxPollInterval int) string
- type Fetches
- type KafkaFranz
- type Poller
Constants ¶
View Source
const ( Krb5KeytabAuth = 2 CommitRetries = 6 RetryBackoff = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func GetFranzConfig ¶
func GetFranzConfig(kfkCfg *config.KafkaConfig) (opts []kgo.Opt, err error)
func NewConsumerPoller ¶ added in v0.7.0
func OnConsumerPoll ¶ added in v0.7.0
func OnConsumerPoll(consumerId string)
Types ¶
type KafkaFranz ¶
type KafkaFranz struct {
// contains filtered or unexported fields
}
KafkaFranz implements input.Inputer refers to examples/group_consuming/main.go
func (*KafkaFranz) CommitMessages ¶
func (k *KafkaFranz) CommitMessages(msg *model.InputMessage) error
func (*KafkaFranz) Description ¶
func (k *KafkaFranz) Description() string
Description of this kafka consumer, consumer group name
func (*KafkaFranz) Init ¶
func (k *KafkaFranz) Init(cfg *config.Config, gCfg *config.GroupConfig, f chan Fetches, cleanupFn func()) (err error)
Init Initialise the kafka instance with configuration
Click to show internal directories.
Click to hide internal directories.