This commit is contained in:
azw 2023-08-13 14:46:44 +08:00
parent efa5f4f44d
commit bc6d786b25
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,14 @@
package mt
import (
"f5"
"mtb"
)
type MasterCluster struct {
mtb.MasterCluster
}
type MasterClusterTable struct {
f5.IdMetaTable[MasterCluster]
}

View File

@ -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 = ""
});
}) })