mirror of
https://github.com/komari-monitor/komari.git
synced 2026-11-23 08:20:46 +00:00
13 lines
256 B
Go
13 lines
256 B
Go
package pingSchedule
|
|
|
|
import (
|
|
"github.com/gookit/event"
|
|
"github.com/komari-monitor/komari/internal/eventType"
|
|
)
|
|
|
|
func init() {
|
|
event.On(eventType.ServerInitializeDone, event.ListenerFunc(func(e event.Event) error {
|
|
return ReloadPingSchedule()
|
|
}))
|
|
}
|