0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-11-23 23:49:35 +00:00
crazy-max_diun/internal/notif/notifier/notifier.go
2020-06-07 22:04:31 +02:00

17 lines
274 B
Go

package notifier
import (
"github.com/crazy-max/diun/v4/internal/model"
)
// Handler is a notifier interface
type Handler interface {
Name() string
Send(entry model.NotifEntry) error
}
// Notifier represents an active notifier object
type Notifier struct {
Handler
}