1
This commit is contained in:
parent
efa5f4f44d
commit
bc6d786b25
14
server/imserver/mt/MasterCluster.go
Normal file
14
server/imserver/mt/MasterCluster.go
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package mt
|
||||||
|
|
||||||
|
import (
|
||||||
|
"f5"
|
||||||
|
"mtb"
|
||||||
|
)
|
||||||
|
|
||||||
|
type MasterCluster struct {
|
||||||
|
mtb.MasterCluster
|
||||||
|
}
|
||||||
|
|
||||||
|
type MasterClusterTable struct {
|
||||||
|
f5.IdMetaTable[MasterCluster]
|
||||||
|
}
|
@ -6,6 +6,7 @@ import (
|
|||||||
|
|
||||||
type table struct {
|
type table struct {
|
||||||
IMCluster *IMClusterTable
|
IMCluster *IMClusterTable
|
||||||
|
MasterCluster *MasterClusterTable
|
||||||
}
|
}
|
||||||
|
|
||||||
var Table = f5.New(func (this* table) {
|
var Table = f5.New(func (this* table) {
|
||||||
@ -13,4 +14,10 @@ var Table = f5.New(func (this* table) {
|
|||||||
this.FileName = "../config/imserver.cluster.json"
|
this.FileName = "../config/imserver.cluster.json"
|
||||||
this.PrimKey = ""
|
this.PrimKey = ""
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.MasterCluster = f5.New(func (this *MasterClusterTable) {
|
||||||
|
this.FileName = "../config/master.cluster.json"
|
||||||
|
this.PrimKey = ""
|
||||||
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user