github.com/spreadshirt/mattermost-server@v5.3.2-0.20180927191755-a257d501df3d+incompatible/utils/testutils/static_config_service.go (about)

     1  // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package testutils
     5  
     6  import (
     7  	"github.com/mattermost/mattermost-server/model"
     8  )
     9  
    10  type StaticConfigService struct {
    11  	Cfg *model.Config
    12  }
    13  
    14  func (s StaticConfigService) Config() *model.Config {
    15  	return s.Cfg
    16  }
    17  
    18  func (StaticConfigService) AddConfigListener(func(old, current *model.Config)) string {
    19  	return ""
    20  }
    21  
    22  func (StaticConfigService) RemoveConfigListener(string) {
    23  
    24  }