task-processor/cmd/main.go

25 lines
374 B
Go
Raw Normal View History

2025-10-02 20:35:53 +03:00
package main
import (
2026-02-28 10:53:02 +03:00
"context"
"os"
"os/signal"
"syscall"
2025-10-03 19:17:01 +03:00
"task-processor/config"
"task-processor/internal/app"
"task-processor/internal/logging"
2025-10-02 20:35:53 +03:00
)
func main() {
2026-02-28 10:53:02 +03:00
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer cancel()
2025-10-02 20:35:53 +03:00
c := config.NewConfig()
logging.LogSetup(c.LogLevel)
appl := app.New(c)
2026-02-28 10:53:02 +03:00
appl.Run(ctx)
2025-10-02 20:35:53 +03:00
}