Documentation
¶
Index ¶
- func Initial()
- func NewEventWorkerHook(name string, mc core.MetricCache) pool.WorkerHook
- func OnEvent(event Event)
- func RemoveJob(id EntryID)
- func StartEventManager()
- func StartJobManager()
- func StopEventManager()
- func StopJobManager()
- type EntryID
- type Event
- type EventManager
- type Job
- type JobFn
- type JobManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventWorkerHook ¶
func NewEventWorkerHook(name string, mc core.MetricCache) pool.WorkerHook
func OnEvent ¶
func OnEvent(event Event)
OnEvent push event to gorotine pool then handled automatic.
func StartEventManager ¶
func StartEventManager()
func StartJobManager ¶
func StartJobManager()
func StopEventManager ¶
func StopEventManager()
func StopJobManager ¶
func StopJobManager()
Types ¶
type EntryID ¶
type EntryID = cron.EntryID
type EventManager ¶
type EventManager interface { Start() Stop() OnEvent(event Event) }
func NewEventManager ¶
type JobManager ¶
JobManager job manger interface
func NewJobManager ¶
func NewJobManager() JobManager
Click to show internal directories.
Click to hide internal directories.