Add NTP service

This commit is contained in:
世界
2023-02-21 14:53:00 +08:00
parent f26785c0ba
commit 611d6bbfc5
26 changed files with 186 additions and 26 deletions

View File

@@ -41,6 +41,8 @@ type Router interface {
PackageManager() tun.PackageManager
Rules() []Rule
TimeService
ClashServer() ClashServer
SetClashServer(server ClashServer)

8
adapter/time.go Normal file
View File

@@ -0,0 +1,8 @@
package adapter
import "time"
type TimeService interface {
Service
TimeFunc() func() time.Time
}