diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-09-26 12:42:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 12:42:51 -0400 |
commit | 4e59a27293394b6d5529efd13ad711daebbc0eb3 (patch) | |
tree | 51094fc76cfc6295d136e4ebbefbc3cac19c650a /utils/testutils/static_config_service.go | |
parent | 15d64fb201848002a25facc3bbffc9535a704df6 (diff) | |
download | chat-4e59a27293394b6d5529efd13ad711daebbc0eb3.tar.gz chat-4e59a27293394b6d5529efd13ad711daebbc0eb3.tar.bz2 chat-4e59a27293394b6d5529efd13ad711daebbc0eb3.zip |
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
Diffstat (limited to 'utils/testutils/static_config_service.go')
-rw-r--r-- | utils/testutils/static_config_service.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/utils/testutils/static_config_service.go b/utils/testutils/static_config_service.go new file mode 100644 index 000000000..44705ff6e --- /dev/null +++ b/utils/testutils/static_config_service.go @@ -0,0 +1,24 @@ +// 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) { + +} |