notifier

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Channel       string
	PreText       string
	Text          string
	ParseMarkdown bool
}

Message is the struct for all outgoing messages

func NewMessage

func NewMessage() Message

NewMessage returns an Message struct for further usage

type Notifier

type Notifier interface {
	Run()
	// contains filtered or unexported methods
}

Notifier base interface

type SlackNotifier

type SlackNotifier struct {
	NotifyChan chan Message
	// contains filtered or unexported fields
}

SlackNotifier struct

func NewSlackNotifier

func NewSlackNotifier(conf *config.Config) *SlackNotifier

NewSlackNotifier builds an notifier depending on the configuration

func (SlackNotifier) Run

func (sn SlackNotifier) Run()

Run starts the channel listener

Jump to

Keyboard shortcuts

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