mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 10:58:21 +00:00
Add NTP Server Config
This commit is contained in:
parent
c961387776
commit
53598e5d78
2 changed files with 7 additions and 0 deletions
6
internal/definitions/service/ntp_server.go
Normal file
6
internal/definitions/service/ntp_server.go
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
package service
|
||||||
|
|
||||||
|
type NTPServer struct {
|
||||||
|
Interface string `json:"interface"`
|
||||||
|
Comment string `json:"comment,omitempty"`
|
||||||
|
}
|
|
@ -4,4 +4,5 @@ type Service struct {
|
||||||
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
|
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
|
||||||
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
|
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
|
||||||
DNSServers []DNSServer `json:"dns_servers" validate:"required,dive"`
|
DNSServers []DNSServer `json:"dns_servers" validate:"required,dive"`
|
||||||
|
NTPServers []NTPServer `json:"ntp_servers" validate:"required,dive"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue