You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
377 B
Go
16 lines
377 B
Go
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)
|
|
}
|
|
|
|
// DelayNotifier is a notifier that might need to be delayed before sending notifications
|
|
type DelayNotifier interface {
|
|
GetDelay() time.Duration
|
|
} |