initial commit

This commit is contained in:
Alireza Ahmadi
2024-02-13 01:17:03 +01:00
commit f40b27fd8b
136 changed files with 16023 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package cronjob
import (
"s-ui/logger"
"s-ui/service"
)
type StatsJob struct {
service.SingBoxService
}
func NewStatsJob() *StatsJob {
return new(StatsJob)
}
func (s *StatsJob) Run() {
err := s.SingBoxService.GetStats()
if err != nil {
logger.Warning("Get stats failed: ", err)
return
}
}