2018-04-27 14:38:12 +02:00
|
|
|
// Copyright 2018 Lars Hoogestraat
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package middleware
|
|
|
|
|
|
|
|
import (
|
|
|
|
"html/template"
|
|
|
|
|
2020-02-20 23:05:27 +01:00
|
|
|
"git.hoogi.eu/snafu/go-blog/models"
|
|
|
|
"git.hoogi.eu/snafu/go-blog/settings"
|
|
|
|
"git.hoogi.eu/snafu/session"
|
2018-04-27 14:38:12 +02:00
|
|
|
)
|
|
|
|
|
2021-01-10 13:14:47 +01:00
|
|
|
// AppContext contains the services, session store, templates, ...
|
2018-04-27 14:38:12 +02:00
|
|
|
type AppContext struct {
|
2021-05-24 18:36:37 +02:00
|
|
|
SessionService *session.Service
|
2022-01-19 23:43:44 +01:00
|
|
|
ArticleService *models.ArticleService
|
|
|
|
CategoryService *models.CategoryService
|
|
|
|
UserService *models.UserService
|
|
|
|
UserInviteService *models.UserInviteService
|
|
|
|
SiteService *models.SiteService
|
|
|
|
FileService *models.FileService
|
|
|
|
TokenService *models.TokenService
|
|
|
|
Mailer *models.Mailer
|
2018-08-23 15:33:20 +02:00
|
|
|
ConfigService *settings.Settings
|
|
|
|
Templates *template.Template
|
2018-04-27 14:38:12 +02:00
|
|
|
}
|