focalboard/server/app/app.go

22 lines
792 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 (
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/mattermost-octo-tasks/server/services/store"
"github.com/mattermost/mattermost-octo-tasks/server/services/webhook"
"github.com/mattermost/mattermost-octo-tasks/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
wsServer *ws.Server
filesBackend filesstore.FileBackend
2020-10-29 21:42:43 +01:00
webhook *webhook.Client
}
2020-10-29 21:42:43 +01:00
func New(config *config.Configuration, store store.Store, wsServer *ws.Server, filesBackend filesstore.FileBackend, webhook *webhook.Client) *App {
2020-10-29 21:09:02 +01:00
return &App{config: config, store: store, wsServer: wsServer, filesBackend: filesBackend, webhook: webhook}
2020-10-16 16:21:42 +02:00
}