github.com/lologarithm/mattermost-server@v5.3.2-0.20181002060438-c82a84ed765b+incompatible/services/configservice/configservice.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See License.txt for license information.
     3  
     4  package configservice
     5  
     6  import (
     7  	"github.com/mattermost/mattermost-server/model"
     8  )
     9  
    10  // An interface representing something that contains a Config, such as the app.App struct
    11  type ConfigService interface {
    12  	Config() *model.Config
    13  	AddConfigListener(func(old, current *model.Config)) string
    14  	RemoveConfigListener(string)
    15  }