mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
506 B
19 lines
506 B
package dtmsvr
|
|
|
|
import "github.com/yedf/dtm/common"
|
|
|
|
type dtmsvrConfig struct {
|
|
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和committed的任务
|
|
DB map[string]string `yaml:"DB"`
|
|
}
|
|
|
|
var config = &dtmsvrConfig{
|
|
TransCronInterval: 10,
|
|
}
|
|
|
|
var dbName = "dtm"
|
|
|
|
func init() {
|
|
common.InitConfig(common.GetProjectDir(), &config)
|
|
config.DB["database"] = ""
|
|
}
|
|
|