22 lines
401 B
Go
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()
|
|
}
|