Qo'shildi: Docker konfiguratsiyasi yangilandi, .env va .gitignore fayllari yaratildi, Redis va muhit o'zgaruvchilari qo'shildi.
This commit is contained in:
12
cmd/main.go
12
cmd/main.go
@@ -1,10 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/JscorpTech/notification/internal/consumer"
|
||||
"github.com/JscorpTech/notification/internal/redis"
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
var ctx = context.Background()
|
||||
|
||||
func main() {
|
||||
notification := consumer.NewNotificationConsumer()
|
||||
if err := godotenv.Load(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
redis.InitRedis()
|
||||
notification := consumer.NewNotificationConsumer(ctx)
|
||||
notification.Start()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user