add common.Duration

This commit is contained in:
Samuel Lorch 2023-04-24 18:09:22 +02:00
parent cc7f8b85b5
commit a9a0bebc2f
3 changed files with 41 additions and 9 deletions

View file

@ -1,14 +1,12 @@
package service
import (
"time"
)
import "nfsense.net/nfsense/internal/definitions/common"
type DHCPv4Server struct {
Interface string `json:"interface"`
Pool []string `json:"pool"`
DefaultLeaseTime time.Duration `json:"default_lease_time"`
MaxLeaseTime time.Duration `json:"max_lease_time"`
Interface string `json:"interface"`
Pool []string `json:"pool"`
DefaultLeaseTime common.Duration `json:"default_lease_time"`
MaxLeaseTime common.Duration `json:"max_lease_time"`
GatewayMode Mode `json:"gateway_mode"`
Gateway *string `json:"gateway,omitempty"`