Files
notification/cmd/main.go
A'zamov Samandar 2bbe34f703
Some checks failed
Deploy to Production / build-and-deploy (push) Failing after 15s
feat(devops)
2025-11-05 19:41:57 +05:00

22 lines
401 B
Go

package main
import (
"context"
"log"
"github.com/JscorpTech/notification/internal/consumer"
"github.com/JscorpTech/notification/internal/redis"
"github.com/joho/godotenv"
)
var ctx = context.Background()
func main() {
if err := godotenv.Load(); err != nil {
log.Println(".env not load")
}
redis.InitRedis()
notification := consumer.NewNotificationConsumer(ctx)
notification.Start()
}