notifier

package
v0.0.0-...-edc1246 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct{}

Notifier notifies Mattermost admins and channels with plugin updates or failures.

func New

func New(papi plugin.API, notifications chan updater.Notification, options ...Option) *Notifier

New creates a new Notifier with papi and notifications chan. notifier consumes notifications from the notifications chan and sends notifications to Mattermost admins and to user given Mattermost notification #channel.

func (*Notifier) UpdateConfig

func (n *Notifier) UpdateConfig(options ...Option)

UpdateConfig updates notifier's options configs set during the first initialization.

type Option

type Option (*Notifier)

Option modifies Notifier's configurations.

func NotificationChannelNameOption

func NotificationChannelNameOption(channel string) Option

NotificationChannelNameOption creates a new option to set a Mattermost #channel to send notifications to.

Jump to

Keyboard shortcuts

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