18 lines
264 B
Go
18 lines
264 B
Go
package cronjob
|
|
|
|
import (
|
|
"github.com/admin8800/s-ui/service"
|
|
)
|
|
|
|
type CheckCoreJob struct {
|
|
service.ConfigService
|
|
}
|
|
|
|
func NewCheckCoreJob() *CheckCoreJob {
|
|
return &CheckCoreJob{}
|
|
}
|
|
|
|
func (s *CheckCoreJob) Run() {
|
|
s.ConfigService.StartCore()
|
|
}
|