f-86: hostsvc: relais DNS et NTP par hôte, socket de contrôle #86
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
ae7213a9d1
commit
d4b83bdb17
20 changed files with 2235 additions and 0 deletions
11
internal/hostsvc/clock_other.go
Normal file
11
internal/hostsvc/clock_other.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//go:build !linux
|
||||
|
||||
package hostsvc
|
||||
|
||||
import "time"
|
||||
|
||||
type SystemClock struct{}
|
||||
|
||||
func (SystemClock) Now() time.Time { return time.Now() }
|
||||
|
||||
func (SystemClock) Sync() (bool, time.Duration, error) { return false, 0, nil }
|
||||
Loading…
Add table
Add a link
Reference in a new issue