* Move HTTPService and ConfigService into utils package * Re-add StaticConfigService * Move config and http services into their own packages
25 строки
483 B
Go
25 строки
483 B
Go
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package testutils
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost-server/model"
|
|
)
|
|
|
|
type StaticConfigService struct {
|
|
Cfg *model.Config
|
|
}
|
|
|
|
func (s StaticConfigService) Config() *model.Config {
|
|
return s.Cfg
|
|
}
|
|
|
|
func (StaticConfigService) AddConfigListener(func(old, current *model.Config)) string {
|
|
return ""
|
|
}
|
|
|
|
func (StaticConfigService) RemoveConfigListener(string) {
|
|
|
|
}
|