|
@@ -21,6 +21,8 @@ var (
|
|
GmailAuth []*mail.GmailAuth
|
|
GmailAuth []*mail.GmailAuth
|
|
EntnichePcConf *entnichePcConf
|
|
EntnichePcConf *entnichePcConf
|
|
Middleground *middleground.Middleground
|
|
Middleground *middleground.Middleground
|
|
|
|
+ EtcdHost []string
|
|
|
|
+ PowerCheckKey string
|
|
)
|
|
)
|
|
|
|
|
|
type ResourceApiConfig struct {
|
|
type ResourceApiConfig struct {
|
|
@@ -66,5 +68,7 @@ func init() {
|
|
}
|
|
}
|
|
ResourceApi.HasPowers = resourceCenter + util.ObjToString(resourceCenterUrl["haspowers"])
|
|
ResourceApi.HasPowers = resourceCenter + util.ObjToString(resourceCenterUrl["haspowers"])
|
|
var ctx = gctx.New()
|
|
var ctx = gctx.New()
|
|
- Middleground = middleground.NewMiddleground(g.Cfg().MustGet(ctx, "etcd.hosts").Strings(), g.Cfg().MustGet(ctx, "userCenterKey").String())
|
|
|
|
|
|
+ EtcdHost = g.Cfg().MustGet(ctx, "etcd.hosts").Strings()
|
|
|
|
+ PowerCheckKey = g.Cfg().MustGet(ctx, "powerCheckKey").String()
|
|
|
|
+ Middleground = middleground.NewMiddleground(EtcdHost, g.Cfg().MustGet(ctx, "userCenterKey").String())
|
|
}
|
|
}
|