mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-08 07:50:27 +08:00
21 lines
505 B
Go
21 lines
505 B
Go
|
|
// 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
|
||
|
|
}
|