...
|
...
|
@@ -17,7 +17,7 @@ const ( |
|
|
)
|
|
|
|
|
|
func RunConsumer() {
|
|
|
saramaConsumer := kafkax.NewSaramaConsumer(KAFKA_HOSTS, GroupId) // models.WithVersion("0.10.2.1")
|
|
|
saramaConsumer := kafkax.NewSaramaConsumer(KAFKA_HOSTS, GroupId) //models.WithHandlerOriginalMessageFlag(true) models.WithVersion("0.10.2.1")
|
|
|
saramaConsumer.WithTopicHandler(TOPIC_BUSSINESS_ADMIN, UserLoginHandler)
|
|
|
saramaConsumer.WithMessageReceiver(local.NewPgMessageReceiverRepository(pg.DB, nil)) // 持久化
|
|
|
|
...
|
...
|
|