1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-30 08:36:54 +02:00
focalboard/server/app/app.go

38 lines
905 B
Go
Raw Normal View History

package app
2020-10-16 16:21:42 +02:00
2020-10-16 16:36:08 +02:00
import (
2021-02-02 22:11:21 +02:00
"github.com/mattermost/focalboard/server/auth"
2021-01-27 00:13:46 +02:00
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/store"
"github.com/mattermost/focalboard/server/services/webhook"
"github.com/mattermost/focalboard/server/ws"
"github.com/mattermost/mattermost-server/v5/services/filesstore"
2020-10-16 16:36:08 +02:00
)
2020-10-16 16:21:42 +02:00
type App struct {
config *config.Configuration
store store.Store
2021-02-02 22:11:21 +02:00
auth *auth.Auth
wsServer *ws.Server
filesBackend filesstore.FileBackend
2020-10-29 22:42:43 +02:00
webhook *webhook.Client
}
2021-02-02 22:11:21 +02:00
func New(
config *config.Configuration,
store store.Store,
auth *auth.Auth,
wsServer *ws.Server,
filesBackend filesstore.FileBackend,
webhook *webhook.Client,
) *App {
return &App{
config: config,
store: store,
auth: auth,
wsServer: wsServer,
filesBackend: filesBackend,
webhook: webhook,
}
2020-10-16 16:21:42 +02:00
}