github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/services/configservice/configservice.go (about) 1 package configservice 2 3 import ( 4 "crypto/ecdsa" 5 6 "github.com/masterhung0112/hk_server/v5/model" 7 ) 8 9 // An interface representing something that contains a Config, such as the app.App struct 10 type ConfigService interface { 11 Config() *model.Config 12 AddConfigListener(func(old, current *model.Config)) string 13 RemoveConfigListener(string) 14 AsymmetricSigningKey() *ecdsa.PrivateKey 15 }