Skip to content

Commit af2d7fa

Browse files
committed
Removed Confluent shifting to Sarama
1 parent 70eab64 commit af2d7fa

6 files changed

Lines changed: 0 additions & 155 deletions

File tree

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.14
44

55
require (
66
github.com/caarlos0/env/v6 v6.2.1
7-
github.com/confluentinc/confluent-kafka-go v1.4.2
87
github.com/gin-gonic/gin v1.6.2
98
go.mongodb.org/mongo-driver v1.3.2
109
go.uber.org/zap v1.15.0

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
22
github.com/caarlos0/env/v6 v6.2.1 h1:/bFpX1dg4TNioJjg7mrQaSrBoQvRfLUHNfXivdFbbEo=
33
github.com/caarlos0/env/v6 v6.2.1/go.mod h1:3LpmfcAYCG6gCiSgDLaFR5Km1FRpPwFvBbRcjHar6Sw=
4-
github.com/confluentinc/confluent-kafka-go v1.4.2 h1:13EK9RTujF7lVkvHQ5Hbu6bM+Yfrq8L0MkJNnjHSd4Q=
5-
github.com/confluentinc/confluent-kafka-go v1.4.2/go.mod h1:u2zNLny2xq+5rWeTQjFHbDzzNuba4P1vo31r9r4uAdg=
64
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
75
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
86
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
@@ -107,8 +105,6 @@ go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
107105
go.uber.org/multierr v1.5.0 h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A=
108106
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
109107
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
110-
go.uber.org/zap v1.14.1 h1:nYDKopTbvAPq/NrUVZwT15y2lpROBiLLyoRTbXOYWOo=
111-
go.uber.org/zap v1.14.1/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc=
112108
go.uber.org/zap v1.15.0 h1:ZZCA22JRF2gQE5FoNmhmrf7jeJJ2uhqDUNRYKm8dvmM=
113109
go.uber.org/zap v1.15.0/go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc=
114110
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=

main.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"github.com/siesgstarena/epicentre/logger"
77
routes "github.com/siesgstarena/epicentre/router"
88
"github.com/siesgstarena/epicentre/services/mongo"
9-
"github.com/siesgstarena/epicentre/services/kafka"
109
)
1110

1211
func main() {
@@ -25,27 +24,11 @@ func main() {
2524

2625
mongo.LoadMongo()
2726

28-
err = kafka.LoadKafka()
29-
if err != nil {
30-
panic(err)
31-
}
32-
logger.Log.Info("Kafka Installed Successfully")
33-
3427
router := gin.Default()
3528

3629
routes.LoadRouter(router)
3730

3831
router.Run(":" + config.Config.Port)
3932

40-
err = kafka.ProduceMessage("Testing Kafka Implementation")
41-
if err != nil {
42-
panic(err)
43-
}
44-
45-
err = kafka.ConsumeMessage()
46-
if err != nil {
47-
panic(err)
48-
}
49-
5033
// defer mongo.Client.Disconnect(*mongo.Ctx)
5134
}

services/kafka/consumer.go

Lines changed: 0 additions & 54 deletions
This file was deleted.

services/kafka/kafka.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

services/kafka/producer.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)