47 lines
1.0 KiB
Go
47 lines
1.0 KiB
Go
package mt
|
|
|
|
import (
|
|
"f5"
|
|
)
|
|
|
|
type table struct {
|
|
AdminCluster *AdminClusterTable
|
|
GameDb *GameDbTable
|
|
FriendDb *FriendDbTable
|
|
AccountDb *AccountDbTable
|
|
MailDb *MailDbTable
|
|
Config *ConfigTable
|
|
}
|
|
|
|
var Table = f5.New(func(this *table) {
|
|
this.AdminCluster = f5.New(func(this *AdminClusterTable) {
|
|
this.FileName = "../config/adminserver.cluster.json"
|
|
this.PrimKey = "instance_id"
|
|
})
|
|
|
|
this.GameDb = f5.New(func(this *GameDbTable) {
|
|
this.FileName = "../config/gamedb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.FriendDb = f5.New(func(this *FriendDbTable) {
|
|
this.FileName = "../config/frienddb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.AccountDb = f5.New(func(this *AccountDbTable) {
|
|
this.FileName = "../config/accountdb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.MailDb = f5.New(func(this *MailDbTable) {
|
|
this.FileName = "../config/maildb.mysql.json"
|
|
this.PrimKey = ""
|
|
})
|
|
|
|
this.Config = f5.New(func(this *ConfigTable) {
|
|
this.FileName = "../config/config.json"
|
|
this.PrimKey = ""
|
|
})
|
|
})
|