slack

package
v0.0.0-...-715d4e1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SlackToken slack token for API access
	SlackToken *slack.Client

	// LogChannel channel ID string
	LogChannel string

	// AppName app name
	AppName string
)

Functions

func Init

func Init(host Host) error

Init initialize slack API token

func Send

func Send(errmsg interface{}, errStr string) error

Send error log to slack channel

Types

type Host

type Host struct {
	Hostname  func() string
	Env       string
	TokenID   string
	ChannelID string
}

Host host that is using this logger

Jump to

Keyboard shortcuts

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