Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config []byte
Config is the raw data read from the provider configuration.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(p Provider)
RegisterProvider adds the provider to the list of registered providers if enabled in the config.
Types ¶
type Provider ¶
type Provider interface { Notify(news.Announcements) GetName() string Enabled() bool }
Provider is implemented in each webhook provider in providers/.
func GetProviders ¶
func GetProviders() []Provider
GetProviders returns a list of registered providers.
Click to show internal directories.
Click to hide internal directories.