Files
diun/internal/notif/notifier/notifier.go
2020-05-27 21:38:07 +02:00

17 lines
274 B
Go

package notifier
import (
"github.com/crazy-max/diun/v3/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
}