Switch notifier to scheduler

This commit is contained in:
Asim Aslam
2020-01-16 13:34:04 +00:00
parent 689ae7cfc7
commit 491a42d352
4 changed files with 20 additions and 20 deletions

View File

@@ -30,15 +30,15 @@ type Runtime interface {
Stop() error
}
// Notifier is an update notifier
type Notifier interface {
// Notify publishes notification events
// Scheduler is a runtime service scheduler
type Scheduler interface {
// Notify publishes schedule events
Notify() (<-chan Event, error)
// Close stops the notifier
// Close stops the scheduler
Close() error
}
// EventType defines notification event
// EventType defines schedule event
type EventType int
const (