game2006go/server/gamelog/mt/MailCluster.go
aozhiwei fb27e0e9f9 1
2024-05-24 07:01:56 +08:00

35 lines
600 B
Go

package mt
import (
"f5"
"mtb"
)
type MailCluster struct {
mtb.MailCluster
}
type MailClusterTable struct {
f5.IdMetaTable[MailCluster]
selfConf *MailCluster
}
func (this *MailCluster) Init1() {
}
func (this *MailClusterTable) GetListenPort() int32 {
return this.selfConf.GetListenPort()
}
func (this *MailClusterTable) GetHttpListenPort() int32 {
return this.selfConf.GetHttpListenPort()
}
func (this *MailClusterTable) PostInit1() {
this.selfConf = this.GetById(int64(f5.GetApp().GetInstanceId()))
if this.selfConf == nil {
panic("mailserver集群无法读取本服配置")
}
}