dtm/dtmsvr/config.go
2021-07-29 22:41:43 +08:00

20 lines
512 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package dtmsvr
import "github.com/yedf/dtm/common"
type dtmsvrConfig struct {
TransCronInterval int64 `yaml:"TransCronInterval"` // 单位秒 当事务等待这个时间之后还没有变化则进行一轮处理包括prepared中的任务和committed的任务
Mysql map[string]string `yaml:"Mysql"`
}
var config = &dtmsvrConfig{
TransCronInterval: 10,
}
var dbName = "dtm"
func init() {
common.InitConfig(common.GetProjectDir(), &config)
config.Mysql["database"] = ""
}