mirror of
https://github.com/StarFleetCPTN/GoMFT.git
synced 2026-11-04 19:17:26 +01:00
feat: Update dependencies and enhance job run details template
- Add new dependencies: `github.com/joho/godotenv`, `github.com/stretchr/testify`, and `gopkg.in/natefinch/lumberjack.v2` - Remove indirect dependency on `github.com/joho/godotenv` - Refactor JobRunDetails template to separate content rendering for improved testing - Enhance error message display in JobRunDetails template - Introduce new test files for JWT and password functionalities - Add comprehensive tests for database operations and error handling
This commit is contained in:
1 parent
a8b4588ecb
commit
3193bf5111
33 files changed
+9185
-232
No files matched your search
@@ -11,16 +11,17 @@ import (
|
||||
// Handlers contains all the dependencies needed by the handlers
|
||||
type Handlers struct {
|
||||
DB *db.DB
|
||||
Scheduler *scheduler.Scheduler
|
||||
Scheduler scheduler.SchedulerInterface
|
||||
JWTSecret string
|
||||
StartTime time.Time
|
||||
DBPath string
|
||||
BackupDir string
|
||||
LogsDir string
|
||||
Email *email.Service
|
||||
}
|
||||
|
||||
// NewHandlers creates a new Handlers instance
|
||||
func NewHandlers(database *db.DB, scheduler *scheduler.Scheduler, jwtSecret string, dbPath string, backupDir string, emailService *email.Service) *Handlers {
|
||||
func NewHandlers(database *db.DB, scheduler scheduler.SchedulerInterface, jwtSecret string, dbPath string, backupDir string, logsDir string, emailService *email.Service) *Handlers {
|
||||
return &Handlers{
|
||||
DB: database,
|
||||
Scheduler: scheduler,
|
||||
@@ -28,6 +29,7 @@ func NewHandlers(database *db.DB, scheduler *scheduler.Scheduler, jwtSecret stri
|
||||
StartTime: time.Now(),
|
||||
DBPath: dbPath,
|
||||
BackupDir: backupDir,
|
||||
LogsDir: logsDir,
|
||||
Email: emailService,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user