Documentation ¶
Overview ¶
Package notifier fetches notifications from the database and informs the specified remote handler about their existences, inviting the third party to actively query the API about it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNotifier ¶ added in v1.0.0
RegisterNotifier makes a Fetcher available by the provided name. If Register is called twice with the same name or if driver is nil, it panics.
Types ¶
type Notifier ¶
type Notifier interface { // Configure attempts to initialize the notifier with the provided configuration. // It returns whether the notifier is enabled or not. Configure(*config.NotifierConfig) (bool, error) // Send informs the existence of the specified notification. Send(notification database.VulnerabilityNotification) error }
Notifier represents anything that can transmit notifications.
Click to show internal directories.
Click to hide internal directories.