neosproxy/notifier/vo.go

19 lines
326 B
Go

package notifier
type EventType string
const (
EventTypeSitemapUpdate EventType = "EventTypeSitemapUpdate"
EventTypeContentUpdate EventType = "EventTypeContentUpdate"
)
type NotifyEvent struct {
EventType EventType
Payload interface{}
}
type Notifier interface {
GetName() string
Notify(event NotifyEvent) error
}