github.com/adacta-ru/mattermost-server@v5.11.1+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  	"crypto/ecdsa"
     8  
     9  	"github.com/mattermost/mattermost-server/model"
    10  )
    11  
    12  // An interface representing something that contains a Config, such as the app.App struct
    13  type ConfigService interface {
    14  	Config() *model.Config
    15  	AddConfigListener(func(old, current *model.Config)) string
    16  	RemoveConfigListener(string)
    17  	AsymmetricSigningKey() *ecdsa.PrivateKey
    18  }