notifier

package
v0.0.0-...-5763d75 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HipchatDefaultEndoint is used unless custom endpoint set
	HipchatDefaultEndoint = "https://api.hipchat.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hipchat

type Hipchat struct {
	Endpoint string
	RoomID   string
	Token    string
	From     string
}

Hipchat service sends messages to a Hipchat room

func NewHipchat

func NewHipchat(config map[string]string) (*Hipchat, error)

NewHipchat creates a Hipchar service for notifying

func (*Hipchat) Name

func (h *Hipchat) Name() string

Name returns the name of the service

func (*Hipchat) Send

func (h *Hipchat) Send(e cloudtrail.Event) error

Send writes the message

type HipchatMessage

type HipchatMessage struct {
	From    string `json:"from,omitempty"`
	Message string `json:"message"`
}

HipchatMessage contains a message to send to a Hipchat room

type Stdout

type Stdout struct {
	// contains filtered or unexported fields
}

Stdout service writes messages to os.Stdout

func (*Stdout) Name

func (s *Stdout) Name() string

Name returns the name of the service

func (*Stdout) Send

func (s *Stdout) Send(e cloudtrail.Event) error

Send writes the message

Jump to

Keyboard shortcuts

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