mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* Consistent license message for all the go files * Fixing the last set of unconsistencies with the license headers * Addressing PR review comments * Fixing busy.go and busy_test.go license header
26 lines
428 B
Go
26 lines
428 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package wsapi
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost-server/v5/app"
|
|
)
|
|
|
|
type API struct {
|
|
App *app.App
|
|
Router *app.WebSocketRouter
|
|
}
|
|
|
|
func Init(a *app.App, router *app.WebSocketRouter) {
|
|
api := &API{
|
|
App: a,
|
|
Router: router,
|
|
}
|
|
|
|
api.InitUser()
|
|
api.InitSystem()
|
|
api.InitStatus()
|
|
|
|
a.HubStart()
|
|
}
|