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 DelStatsJob struct {
service.StatsService
}
func NewDelStatsJob() *DelStatsJob {
return &DelStatsJob{}
}
func (s *DelStatsJob) Run() {
err := s.StatsService.DelOldStats(30)
if err != nil {
logger.Warning("Deleting old statistics failed: ", err)
return
}
}