Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
func NewCommand ¶
type DesktopNotifier ¶
type DesktopNotifier struct {
// contains filtered or unexported fields
}
func (DesktopNotifier) Failure ¶
func (d DesktopNotifier) Failure(cmd *Command, err error)
func (DesktopNotifier) Success ¶
func (d DesktopNotifier) Success(cmd *Command)
type Notifier ¶
func GetNotifier ¶
Creates a new Hermes notifier instance from the parsed configuration file. The configuration's YAML structure should look something like:
notifier:
type: <NOTIFIER_TYPE> ...notifier-specific configuration goes here...
func NewDesktopNotifier ¶
Creates a new desktop-based notification using any one of the available desktop notification libraries available for your system (e.g. Growl on Windows, notify-send on Linux, etc.). To configure this notifier, you should use the following configuration:
notifier:
type: desktop
func NewSlackNotifier ¶
Creates a new Slack-enabled notifier. This expects a minimal Hermes configuration that looks like:
notifier:
type: slack webHookUrl: <SLACK_WEB_HOOK_URL> sender: <SLACK_SENDER_NAME> recipient: <SLACK_RECIPIENT_NAME>
type SlackNotifier ¶
type SlackNotifier struct {
// contains filtered or unexported fields
}
func (SlackNotifier) Failure ¶
func (s SlackNotifier) Failure(cmd *Command, err error)
func (SlackNotifier) Success ¶
func (s SlackNotifier) Success(cmd *Command)
Click to show internal directories.
Click to hide internal directories.