github.com/xzl8028/xenia-server@v0.0.0-20190809101854-18450a97da63/services/configservice/configservice.go (about)

     1  // Copyright (c) 2015-present Xenia, 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/xzl8028/xenia-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  }