Documentation ¶ Index ¶ Variables func Init(host Host) error func Send(errmsg interface{}, errStr string) error type Host 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 Source Files ¶ View all Source files messages.go Click to show internal directories. Click to hide internal directories.