simplify legacy notifications

removes all code related to log levels and title, since that is not used anyway
this also gets rid of slackrus dependency
This commit is contained in:
nils måsén 2022-09-07 16:14:00 +02:00
parent 42b65b42f3
commit cc40a3c3a7
9 changed files with 50 additions and 93 deletions

View file

@ -1,16 +1,17 @@
package types
import (
"github.com/spf13/cobra"
"time"
"github.com/spf13/cobra"
)
// ConvertibleNotifier is a notifier capable of creating a shoutrrr URL
type ConvertibleNotifier interface {
GetURL(c *cobra.Command, title string) (string, error)
GetURL(c *cobra.Command) (string, error)
}
// DelayNotifier is a notifier that might need to be delayed before sending notifications
type DelayNotifier interface {
GetDelay() time.Duration
}
}