mirror of
https://github.com/crazy-max/diun.git
synced 2024-11-23 23:49:35 +00:00
17 lines
274 B
Go
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
|
|
}
|