fix tests, upgrade snakes

This commit is contained in:
nils måsén 2021-06-27 00:19:52 +02:00 committed by nils måsén
parent aa50cdf9bc
commit 1165f31ca0
15 changed files with 669 additions and 283 deletions

View file

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