Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSendNotification = errors.New("notify: could not send notification")
ErrSendNotification is returned when a notification could not be sent.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DeviceTokens []string
}
Config is the configuration for a notifier.
type Notifier ¶
type Notifier interface {
Notify(ctx context.Context, title, message string, config ...Config) error
}
Notifier is an interface for sending notifications.
Click to show internal directories.
Click to hide internal directories.