slackrus

package module
v0.0.0-...-8391b27 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

README

slackrus

Slack hook for Logrus with nlopes/slack module

Documentation

Index

Constants

View Source
const (
	SLACK_COLOR_DANGER  string = "danger"
	SLACK_COLOR_WARNING string = "warning"
	SLACK_COLOR_GOOD    string = "good"
)
View Source
const (
	VERSION = "1.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackHook

type SlackHook struct {
	Username   string
	AuthorName string
	Channel    string
	IconURL    string
	IconEmoji  string
	// contains filtered or unexported fields
}

func NewSlackHook

func NewSlackHook(token, username, authorName, channel, iconURL, iconEmoji string) *SlackHook

func (*SlackHook) Fire

func (hook *SlackHook) Fire(sourceEntry *logrus.Entry) error

func (*SlackHook) Levels

func (hook *SlackHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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