File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55require (
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
Original file line number Diff line number Diff line change 11github.com/BurntSushi/toml v0.3.1 /go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU =
22github.com/caarlos0/env/v6 v6.2.1 h1:/bFpX1dg4TNioJjg7mrQaSrBoQvRfLUHNfXivdFbbEo =
33github.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 =
64github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
75github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
86github.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=
107105go.uber.org/multierr v1.5.0 h1:KCa4XfM8CWFCpxXRGok+Q0SS/0XBhMDbHHGABQLvD2A =
108106go.uber.org/multierr v1.5.0 /go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU =
109107go.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 =
112108go.uber.org/zap v1.15.0 h1:ZZCA22JRF2gQE5FoNmhmrf7jeJJ2uhqDUNRYKm8dvmM =
113109go.uber.org/zap v1.15.0 /go.mod h1:Mb2vm2krFEG5DV0W9qcHBYFtp/Wku1cvYaqPsS/WYfc =
114110golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 /go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4 =
Original file line number Diff line number Diff line change 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
1211func 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}
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments