f1b8d88d6b
* Improving mattermost auth implementation * Making mattermost-auth based on shared database access * Reverting unneeded changes in the config.json file * Fixing tiny problems * Removing the need of using the mattermost session token * Fixing some bugs and allowing to not-bind the server to any port * Small fix to correctly get the templates * Adding the mattermost-plugin code inside focalboard repo * Adding a not working code part of the cluster websocket communication * Updating the mattermost version * Adding the cluster messages for the websockets * Updating to the new node version * Making it compatible with S3 * Addressing some tiny problems * Fixing server tests * Adds support for MySQL migrations and initialization Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
37 lines
900 B
Go
37 lines
900 B
Go
package app
|
|
|
|
import (
|
|
"github.com/mattermost/focalboard/server/auth"
|
|
"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/shared/filestore"
|
|
)
|
|
|
|
type App struct {
|
|
config *config.Configuration
|
|
store store.Store
|
|
auth *auth.Auth
|
|
wsServer *ws.Server
|
|
filesBackend filestore.FileBackend
|
|
webhook *webhook.Client
|
|
}
|
|
|
|
func New(
|
|
config *config.Configuration,
|
|
store store.Store,
|
|
auth *auth.Auth,
|
|
wsServer *ws.Server,
|
|
filesBackend filestore.FileBackend,
|
|
webhook *webhook.Client,
|
|
) *App {
|
|
return &App{
|
|
config: config,
|
|
store: store,
|
|
auth: auth,
|
|
wsServer: wsServer,
|
|
filesBackend: filesBackend,
|
|
webhook: webhook,
|
|
}
|
|
}
|