|
@@ -1,11 +1,20 @@
|
|
|
package middleground
|
|
|
|
|
|
type Middleground struct {
|
|
|
+ hosts []string
|
|
|
UserCenter *userCenter
|
|
|
}
|
|
|
|
|
|
-func NewMiddleground(hosts []string, key string) *Middleground {
|
|
|
+func NewMiddleground(hosts []string) *Middleground {
|
|
|
return &Middleground{
|
|
|
- UserCenter: newUserCenter(hosts, key),
|
|
|
+ hosts: hosts,
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+func (m *Middleground) RegUserCenter(key string) {
|
|
|
+ m.UserCenter = newUserCenter(m.hosts, key)
|
|
|
+}
|
|
|
+
|
|
|
+func (m *Middleground) RegPowerCheckCenter(key string) {
|
|
|
+
|
|
|
+}
|