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