github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/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/vnforks/kid/v5/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 }