mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
28 lines
630 B
Go
28 lines
630 B
Go
package console
|
|
|
|
import (
|
|
"github.com/goravel/framework/contracts/console"
|
|
"github.com/goravel/framework/contracts/schedule"
|
|
"github.com/goravel/framework/facades"
|
|
|
|
"panel/app/console/commands"
|
|
)
|
|
|
|
type Kernel struct {
|
|
}
|
|
|
|
func (kernel *Kernel) Schedule() []schedule.Event {
|
|
return []schedule.Event{
|
|
facades.Schedule().Command("panel:monitoring").EveryMinute().SkipIfStillRunning(),
|
|
facades.Schedule().Command("panel:cert-renew").Daily().SkipIfStillRunning(),
|
|
}
|
|
}
|
|
|
|
func (kernel *Kernel) Commands() []console.Command {
|
|
return []console.Command{
|
|
&commands.Panel{},
|
|
&commands.Monitoring{},
|
|
&commands.CertRenew{},
|
|
}
|
|
}
|