Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { IsProduction bool DSN string DB *sql.DB Session *scs.SessionManager Port string // ":8080" InfoLog *log.Logger ErrorLog *log.Logger InfoChan chan (string) ErrorChan chan error ErrorDoneChan chan bool ReminderDoneChan chan bool WG sync.WaitGroup Context context.Context MU sync.Mutex Mailer mailer.Mailer SessionManager *scs.SessionManager }
func NewAppConfig ¶
func NewAppConfig() AppConfig
NewAppConfig returns an app config preloaded with a few necessary components
Click to show internal directories.
Click to hide internal directories.