集群增加自动同步时钟选项

This commit is contained in:
刘祥超
2022-09-15 15:57:16 +08:00
parent f914802b06
commit a92d8887e3
7 changed files with 4284 additions and 4242 deletions

View File

@@ -0,0 +1,20 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package nodeconfigs
func DefaultClockConfig() *ClockConfig {
return &ClockConfig{
AutoSync: true,
Server: "",
}
}
// ClockConfig 时钟相关配置
type ClockConfig struct {
AutoSync bool `yaml:"autoSync" json:"autoSync"` // 自动尝试同步时钟
Server string `yaml:"server" json:"server"` // 时钟同步服务器
}
func (this *ClockConfig) Init() error {
return nil
}