Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Service struct { Name string `default:"ntp-service" json:"name"` SyncPeriod time.Duration `default:"1m" json:"sync_period"` CheckOnly bool `json:"check_only" default:"false"` Hosts []string `default:"time.apple.com,time.cloudflare.com,time.google.com,time.facebook.com" json:"hosts"` } `json:"service"` Zap struct { //debug, info, warn, error, fatal, panic Level string `default:"info" json:"level"` //console, json Encoding string `default:"console" json:"encoding"` //disable, short, full Caller string `default:"disable" json:"caller"` } `json:"zap"` }
Click to show internal directories.
Click to hide internal directories.