Move HTTPService and ConfigService into services package (#9422)
* Move HTTPService and ConfigService into utils package * Re-add StaticConfigService * Move config and http services into their own packages
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
15d64fb201
Коммит
4e59a27293
15
services/configservice/configservice.go
Обычный файл
15
services/configservice/configservice.go
Обычный файл
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
package configservice
|
||||
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/model"
|
||||
)
|
||||
|
||||
// An interface representing something that contains a Config, such as the app.App struct
|
||||
type ConfigService interface {
|
||||
Config() *model.Config
|
||||
AddConfigListener(func(old, current *model.Config)) string
|
||||
RemoveConfigListener(string)
|
||||
}
|
||||
Ссылка в новой задаче
Block a user