notify

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Plugin = taskplugin.New("notify", "0.1", exec,
		taskplugin.WithConfig(validConfig, Config{}))
)

the notify plugin broadcasts a message over all registered notification senders

Functions

This section is empty.

Types

type Config

type Config struct {
	Msg      string   `json:"message"`
	Flds     []string `json:"fields"`
	Backends []string `json:"backends"`
}

Config is the configuration needed to send a notification consisting of a message and extra fields implements notify.Payload

func (*Config) Fields

func (nc *Config) Fields() []string

Fields returns the config's fields

func (*Config) Message

func (nc *Config) Message() string

Message returns the config's message

Jump to

Keyboard shortcuts

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