mirror of
https://github.com/foomo/neosproxy.git
synced 2025-10-16 12:35:39 +00:00
19 lines
326 B
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
|
|
}
|