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 /services/configservice/configservice.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 'services/configservice/configservice.go')
-rw-r--r-- | services/configservice/configservice.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/services/configservice/configservice.go b/services/configservice/configservice.go new file mode 100644 index 000000000..bb854d21f --- /dev/null +++ b/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) +} |