providers

package
v1.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL