mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
add common.Duration
This commit is contained in:
parent
cc7f8b85b5
commit
a9a0bebc2f
3 changed files with 41 additions and 9 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue