Documentation ¶
Index ¶
Constants ¶
View Source
const SettingsKey = "notifications"
Variables ¶
View Source
var ErrInvalidNotifier = errors.New(`Invalid Notifier`)
View Source
var PassPolicy = core.PassPolicy
Functions ¶
func SetSettings ¶
Types ¶
type Center ¶
type Center struct {
// contains filtered or unexported fields
}
func New ¶
func New(reader metadata.Reader, translators translator.Translators, policy Policy, notifiers map[string]Notifier) *Center
func NewWithCustomLanguageFetcher ¶
func NewWithCustomLanguageFetcher(translators translator.Translators, policy Policy, languageFetcher func() (language.Tag, error), notifiers map[string]Notifier) *Center
type Notification ¶
type Notification = core.Notification
Click to show internal directories.
Click to hide internal directories.