2024-06-27 14:03:43 +02:00
|
|
|
package config
|
|
|
|
|
2024-06-28 15:30:00 +02:00
|
|
|
import (
|
2024-07-16 13:55:35 +02:00
|
|
|
"go-udemy-web-1/internal/models"
|
2024-06-28 15:30:00 +02:00
|
|
|
"html/template"
|
2024-07-03 10:03:25 +02:00
|
|
|
"log"
|
2024-06-28 15:30:00 +02:00
|
|
|
|
|
|
|
"github.com/alexedwards/scs/v2"
|
|
|
|
)
|
2024-06-27 14:03:43 +02:00
|
|
|
|
|
|
|
// AppConfig holds the application config
|
|
|
|
type AppConfig struct {
|
|
|
|
TemplateCahce map[string]*template.Template
|
|
|
|
UseCache bool
|
2024-06-28 15:30:00 +02:00
|
|
|
InProduction bool
|
2024-07-03 10:03:25 +02:00
|
|
|
InfoLog *log.Logger
|
|
|
|
ErrorLog *log.Logger
|
2024-06-28 15:30:00 +02:00
|
|
|
Session *scs.SessionManager
|
2024-07-16 13:55:35 +02:00
|
|
|
MailChan chan models.MailData
|
2024-06-27 14:03:43 +02:00
|
|
|
}
|